diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30c30e9..f992116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,13 @@ name: CI on: - push: - branches: [main] pull_request: branches: [main] + workflow_dispatch: + +concurrency: + group: ci-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true env: CARGO_TERM_COLOR: always @@ -40,7 +43,3 @@ jobs: - name: Build (release) run: cargo build --release --verbose - - linux-i686: - name: Build & Test Linux i686 - uses: ./.github/workflows/build-i686.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b26732..8b028e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,6 @@ permissions: # If there's a prerelease-style suffix to the version, then the release(s) # will be marked as a prerelease. on: - pull_request: push: tags: - '**[0-9]+.[0-9]+.[0-9]+*' diff --git a/RELEASING.md b/RELEASING.md index f321135..8b33475 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -24,6 +24,11 @@ Termleaf follows Semantic Versioning: 5. Commit and push the release preparation, then confirm the normal CI passed. +To conserve GitHub Actions usage, normal CI runs once per pull request and +cancels superseded runs. The i686 compatibility build and cargo-dist platform +matrix run only for version-tag releases; validate i686-sensitive changes +locally before tagging when possible. + ## Publish Create and push a tag that exactly matches the Cargo package version: diff --git a/dist-workspace.toml b/dist-workspace.toml index 4cfdf07..432e87e 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -4,6 +4,7 @@ members = ["cargo:."] [dist] cargo-dist-version = "0.32.0" ci = "github" +pr-run-mode = "skip" installers = [] targets = [ "aarch64-apple-darwin",