diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e993f541c..38877a314 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,17 +16,15 @@ on: env: TARPAULIN_VERSION: 0.19.1 +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Coverage Report runs-on: [self-hosted] steps: - - name: Cancel Previous Runs - # Only cancel non-master branch runs - if: ${{ github.ref != 'refs/heads/master' }} - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - name: Checkout repository uses: actions/checkout@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5f7e60c1..0d253855a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,21 +14,15 @@ on: paths-ignore: - '**/README.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: - cancel: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - # Only cancel non-master branch runs - if: ${{ github.ref != 'refs/heads/master' }} - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} build: runs-on: [self-hosted] env: - SCCACHE_CACHE_SIZE: "50G" - needs: cancel + SCCACHE_CACHE_SIZE: "60G" steps: - uses: actions/checkout@v3 - name: Install toolchain