Skip to content

Commit 3b0800e

Browse files
committed
CLI release: fix macOS builds
1 parent 75f7cc2 commit 3b0800e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ on:
55

66
jobs:
77
release:
8-
name: release ${{ matrix.target }}
8+
name: release ${{ matrix.targets.name }}
99
runs-on: ubuntu-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
target:
13+
targets:
1414
[
15-
x86_64-pc-windows-gnu,
16-
x86_64-unknown-linux-musl,
17-
x86_64-apple-darwin,
15+
{ name: Windows, triple: x86_64-pc-windows-gnu, version: stable },
16+
{ name: Linux, triple: x86_64-unknown-linux-musl, version: stable },
17+
# Fix for https://github.com/rust-build/rust-build.action/issues/88
18+
{ name: macOS, triple: x86_64-apple-darwin, version: '1.73.0' }
1819
]
1920
steps:
2021
- uses: actions/checkout@v4
2122
- name: Compile and release
2223
uses: rust-build/[email protected]
2324
env:
2425
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
RUSTTARGET: ${{ matrix.target }}
26+
RUSTTARGET: ${{ matrix.targets.triple }}
27+
TOOLCHAIN_VERSION: ${{ matrix.targets.version }}
2628
EXTRA_FILES: "README.md LICENSE"
2729
SRC_DIR: "cli/"

0 commit comments

Comments
 (0)