master
 1name: Go Test
 2on:
 3  pull_request:
 4    paths-ignore:
 5      - ".github/**"
 6concurrency:
 7  group: ${{ github.workflow }}-${{ github.ref }}
 8  cancel-in-progress: true
 9jobs:
10  go-test:
11    runs-on: ubuntu-latest
12    permissions:
13      contents: read
14    steps:
15      - uses: actions/checkout@v7
16      - name: Setup Rust
17        uses: actions-rust-lang/setup-rust-toolchain@v2
18        with:
19          toolchain: stable
20          cache: true
21          cache-workspaces: ./lib/system
22          cache-key: ${{ runner.os }}
23      - name: Setup cross toolchain
24        run: cargo install cross
25      - name: Build Rust static library
26        run: ./scripts/build-static-ci.sh
27        env:
28          TARGET: x86_64-unknown-linux-gnu
29      - name: Setup Go
30        uses: actions/setup-go@v7
31        with:
32          go-version-file: go.mod
33      - name: Install dependencies
34        run: go get .
35      - name: Build
36        run: go build -v ./...
37      - name: Test
38        run: go test ./...