Debian Codegraph @

.github/workflows/build.yaml

raw symbols SCIP
1 name: build
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8 strategy:
9 matrix:
10 go: [1.24]
11 env:
12 working-directory: ./src/github.com/goccmack/gocc
13
14 steps:
15 - name: Set GOPATH
16 run: |
17 echo "GOPATH=$(dirname $GITHUB_WORKSPACE)/gocc" >> $GITHUB_ENV
18 echo "$(dirname $GITHUB_WORKSPACE)/gocc/bin" >> $GITHUB_PATH
19 shell: bash
20
21 - name: Setup Go
22 uses: actions/setup-go@v5
23 with:
24 go-version: ${{ matrix.go }}
25 id: go
26
27 - name: Checkout
28 uses: actions/checkout@v4
29 with:
30 fetch-depth: 1
31 path: src/github.com/goccmack/gocc
32
33 - name: golangci-lint
34 uses: golangci/golangci-lint-action@v6
35 with:
36 version: v1.60
37 args: --issues-exit-code=0 # Do not care about output, we run golangci-lint in the Makefile again and then we do care.
38 working-directory: ${{env.working-directory}}
39 install-mode: "goinstall" # This is slow, but necessary if you are using a newer version of Go than golangci-lint supports
40
41 - name: Check
42 run: go get && make ci
43 working-directory: ${{env.working-directory}}