Skip to content

Commit babfb4d

Browse files
anbei.yuanCopilot
andcommitted
ci(release): explicitly add target std after toolchain setup
macos-13 (Intel) runner queue is too slow. Revert to macos-latest (arm64) and add an explicit 'rustup target add' step to ensure x86_64-apple-darwin std is installed for cross-compilation. dtolnay/rust-toolchain's targets input occasionally doesn't install std in cross-arch macOS scenarios. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 20dc8f9 commit babfb4d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- os: macos-latest
2929
target: aarch64-apple-darwin
3030
archive: tar.gz
31-
- os: macos-13
31+
- os: macos-latest
3232
target: x86_64-apple-darwin
3333
archive: tar.gz
3434
- os: ubuntu-latest
@@ -61,6 +61,10 @@ jobs:
6161
with:
6262
targets: ${{ matrix.target }}
6363

64+
- name: Ensure target std is installed
65+
if: matrix.cross != true
66+
run: rustup target add ${{ matrix.target }}
67+
6468
- uses: Swatinem/rust-cache@v2
6569
with:
6670
key: ${{ matrix.target }}

0 commit comments

Comments
 (0)