diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index edebef34..166e5b26 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -48,7 +48,12 @@ jobs: # target-cache: false + cargo-registry-cache: false + # prebuild-deps: soldr-cook (setup-soldr v0.9.17+, #251). cache-preset: foundation - cache-key-suffix: ${{ inputs.runs-on }} + # Include the rust target: the same runner label hosts multiple + # cross-compile targets (e.g. windows-2025 builds both x86_64 and + # aarch64-pc-windows-msvc), which would otherwise thrash one key. + # "-native" lines up with the lint/test workflows' suffix so jobs + # on the same platform share one cache namespace. + cache-key-suffix: ${{ inputs.runs-on }}-${{ inputs.rust-target || 'native' }} linker: platform-default toolchain-file: rust-toolchain.ci.toml diff --git a/.github/workflows/_integration-test.yml b/.github/workflows/_integration-test.yml index 426ec30e..2c91f975 100644 --- a/.github/workflows/_integration-test.yml +++ b/.github/workflows/_integration-test.yml @@ -31,12 +31,16 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} with: - version: 0.7.53 + # No soldr version pin: keep in lockstep with _build.yml so all jobs + # resolve the same soldr/zccache version and share warm caches + # (see the pin rationale comment in _build.yml and #158). # cache-preset: foundation expands to build-cache: true + # target-cache: false + cargo-registry-cache: false + # prebuild-deps: soldr-cook (setup-soldr v0.9.17+, #251). cache-preset: foundation - cache-key-suffix: ${{ inputs.runs-on }} + # "-native" matches _build.yml's native-target suffix so lint, test, + # and native build jobs on the same runner share one cache namespace. + cache-key-suffix: ${{ inputs.runs-on }}-native linker: platform-default toolchain-file: rust-toolchain.toml # `./test` runs `soldr cargo test --workspace` (dev/debug profile). diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index aeb87030..b33a28c9 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -29,12 +29,16 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} with: - version: 0.7.53 + # No soldr version pin: keep in lockstep with _build.yml so all jobs + # resolve the same soldr/zccache version and share warm caches + # (see the pin rationale comment in _build.yml and #158). # cache-preset: foundation expands to build-cache: true + # target-cache: false + cargo-registry-cache: false + # prebuild-deps: soldr-cook (setup-soldr v0.9.17+, #251). cache-preset: foundation - cache-key-suffix: ${{ inputs.runs-on }} + # "-native" matches _build.yml's native-target suffix so lint, test, + # and native build jobs on the same runner share one cache namespace. + cache-key-suffix: ${{ inputs.runs-on }}-native linker: platform-default toolchain-file: rust-toolchain.toml # `./lint` runs `soldr cargo clippy --workspace --all-targets` diff --git a/.github/workflows/_unit-test.yml b/.github/workflows/_unit-test.yml index 7e72373d..7105e036 100644 --- a/.github/workflows/_unit-test.yml +++ b/.github/workflows/_unit-test.yml @@ -31,12 +31,16 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} with: - version: 0.7.53 + # No soldr version pin: keep in lockstep with _build.yml so all jobs + # resolve the same soldr/zccache version and share warm caches + # (see the pin rationale comment in _build.yml and #158). # cache-preset: foundation expands to build-cache: true + # target-cache: false + cargo-registry-cache: false + # prebuild-deps: soldr-cook (setup-soldr v0.9.17+, #251). cache-preset: foundation - cache-key-suffix: ${{ inputs.runs-on }} + # "-native" matches _build.yml's native-target suffix so lint, test, + # and native build jobs on the same runner share one cache namespace. + cache-key-suffix: ${{ inputs.runs-on }}-native linker: platform-default toolchain-file: rust-toolchain.toml # `./test` runs `soldr cargo test --workspace` (dev/debug profile). diff --git a/.github/workflows/linux-x86-dwarf-smoke.yml b/.github/workflows/linux-x86-dwarf-smoke.yml index d7c8466f..da4b711a 100644 --- a/.github/workflows/linux-x86-dwarf-smoke.yml +++ b/.github/workflows/linux-x86-dwarf-smoke.yml @@ -40,7 +40,9 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} with: - version: 0.7.53 + # No soldr version pin: keep in lockstep with _build.yml so all jobs + # resolve the same soldr/zccache version and share warm caches + # (see the pin rationale comment in _build.yml and #158). cache-preset: foundation cache-key-suffix: ubuntu-24.04-dwarf-smoke linker: platform-default diff --git a/.github/workflows/windows-arm-integration-test.yml b/.github/workflows/windows-arm-integration-test.yml deleted file mode 100644 index 52ee35d0..00000000 --- a/.github/workflows/windows-arm-integration-test.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Windows ARM Integration Test - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - call: - uses: ./.github/workflows/_integration-test.yml - with: - runs-on: windows-2025 diff --git a/.github/workflows/windows-arm-lint.yml b/.github/workflows/windows-arm-lint.yml deleted file mode 100644 index f9aba208..00000000 --- a/.github/workflows/windows-arm-lint.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Windows ARM Lint - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - call: - uses: ./.github/workflows/_lint.yml - with: - runs-on: windows-2025 diff --git a/.github/workflows/windows-arm-unit-test.yml b/.github/workflows/windows-arm-unit-test.yml deleted file mode 100644 index 97309da9..00000000 --- a/.github/workflows/windows-arm-unit-test.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Windows ARM Unit Test - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - call: - uses: ./.github/workflows/_unit-test.yml - with: - runs-on: windows-2025