diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44708ee1..509f278c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,14 @@ -on: [push, pull_request] - name: Build +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +on: + push: + branches: [main] + pull_request: {} + jobs: release: name: Build @@ -14,7 +21,7 @@ jobs: - windows-latest steps: - name: 'Checkout' - uses: actions/checkout@v2 + uses: actions/checkout@v6 - uses: actions-rs/toolchain@v1 with: profile: minimal