diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 221f368..9f9d061 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,6 +6,12 @@ on: - main pull_request: +# Only one pull-request triggered run should be executed at a time +# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run). +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: # completely stolen from https://github.com/jonhoo/inferno/blob/8c0a28cab440fd00cd42cfbca403dde895cc67e3/.github/workflows/check.yml#L86-L107 msrv: @@ -34,7 +40,7 @@ jobs: with: profile: minimal toolchain: ${{matrix.msrv}} - defualt: true + default: true components: rustfmt, clippy - name: cargo +${{ matrix.msrv }} check diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3c36e35..3cf7d04 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,6 +7,12 @@ on: pull_request: workflow_dispatch: +# Only one pull-request triggered run should be executed at a time +# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run). +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: coverage: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 354cc26..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Open a release PR -on: - workflow_dispatch: - inputs: - crate: - description: Crate to release - required: true - type: choice - options: - - fitsio - - fitsio-sys - - fitsio-derive - version: - description: Version to release - required: true - type: string - -jobs: - make-release-pr: - permissions: - id-token: write - pull-requests: write - contents: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: chainguard-dev/actions/setup-gitsign@main - - name: Install cargo-release - uses: taiki-e/install-action@v2 - with: - tool: cargo-release - - name: Install ubuntu dependencies - run: | - sudo apt-get update && sudo apt-get install --no-install-recommends -y \ - llvm-dev \ - libcfitsio-dev \ - pkg-config \ - libssl-dev \ - python3 - - uses: cargo-bins/release-pr@v2 - with: - github-token: ${{ secrets.PIPELINE_TOKEN }} - version: ${{ inputs.version }} - crate-name: ${{ inputs.crate }} - pr-merge-strategy: merge diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 9eb8ab3..deea131 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -8,6 +8,12 @@ on: schedule: - cron: "7 7 * * *" +# Only one pull-request triggered run should be executed at a time +# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run). +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: nightly: runs-on: ubuntu-latest @@ -33,4 +39,4 @@ jobs: components: rustfmt, clippy - name: Test the code - run: python3 ./bin/test --rust-version nightly --test all --extra-clippy-flags "-A clippy::arc_with_non_send_sync" # extra clippy args since lint is nightly only for now + run: python3 ./bin/test --rust-version nightly --test all --extra-clippy-flags "-A clippy::arc_with_non_send_sync" # extra clippy args since lint is nightly only for now diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3f2c12..d33970e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,12 @@ on: - main pull_request: +# Only one pull-request triggered run should be executed at a time +# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run). +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: ci-test: runs-on: ubuntu-latest