Skip to content

Commit f6736fb

Browse files
1313Copilot
andcommitted
ci(release): run release-pr / release jobs on macos-26
The release jobs run `cargo publish --verify`, which fresh-builds the crate against crates.io versions of every dependency. The current crates.io `apple-metal` (v0.6.1) statically references macOS 26 SDK Metal symbols (MTLSamplerDescriptor.reductionMode, etc.), so the verify step needs the macOS 26 SDK to compile. `macos-latest` is pinned to macOS 14 in GitHub Actions today and ships an older Xcode SDK, so the v3.1.2 publish failed with: cannot find 'MTLSamplerReductionMode' in scope value of type 'MTLSamplerDescriptor' has no member 'reductionMode' error: failed to verify package tarball Move release-pr + release to macos-26 — same SDK pin we already use for the build matrix and lint job. This lets release-plz actually publish v3.1.2 to crates.io on the next push to main. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7148a2b commit f6736fb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,12 @@ jobs:
156156
run: cargo run --example 15_memory_leak_check --features "${{ matrix.features }}"
157157

158158
# ==========================================================================
159-
# Release (only on main, after successful build and leak-check)
159+
# Release (only on main, after successful build and leak-check).
160+
# Pinned to macos-26 so `cargo publish --verify` builds against the macOS
161+
# 26 SDK that apple-metal 0.6.x already requires (see build matrix note).
160162
# ==========================================================================
161163
release-pr:
162-
runs-on: macos-latest
164+
runs-on: macos-26
163165
needs: [lint, build, leak-check]
164166
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
165167
environment: release
@@ -185,7 +187,7 @@ jobs:
185187
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
186188

187189
release:
188-
runs-on: macos-latest
190+
runs-on: macos-26
189191
needs: [lint, build, leak-check]
190192
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
191193
environment: release

0 commit comments

Comments
 (0)