github.com/blong14/gache@v0.0.0-20240124023949-89416fd8bbfa/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10  
    11    build:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - uses: actions/checkout@v2
    15  
    16        - name: Install system dependencies
    17          run: |
    18            sudo apt update
    19            sudo apt-get update
    20            sudo apt-get -y install libbrotli-dev
    21        - name: Set up Go
    22          uses: actions/setup-go@v2
    23          with:
    24            go-version: 1.20.1
    25  
    26        - name: Build
    27          run: GOEXPERIMENT=arenas go build -v ./...
    28  
    29        - name: Test
    30          run: GOEXPERIMENT=arenas go test -v -race ./...
    31  
    32        - name: Bench Concurrent
    33          run: GOEXPERIMENT=arenas go test -cpu=1,2,4,8 -bench=BenchmarkSkiplist -run=XXX ./...