diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a524913..dca3d46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build-and-test: strategy: @@ -19,6 +23,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install go + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache-dependency-path: "**/go.sum" + # Step 1: Set up Rust and build with Cargo - name: Set up Rust uses: dtolnay/rust-toolchain@stable