Skip to content

Commit 44142a7

Browse files
committed
Install rustup toolchain for release targets
1 parent f1864f6 commit 44142a7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
1414
build:
1515
needs: [test]
16-
runs-on: ${{ matrix.platform.runner }}
16+
runs-on: ${{ matrix.runner }}
1717
strategy:
1818
matrix:
19-
platform:
19+
include:
2020
- runner: ubuntu-22.04
2121
target: x86_64-unknown-linux-musl
2222
- runner: ubuntu-22.04
@@ -27,11 +27,14 @@ jobs:
2727
target: aarch64-apple-darwin
2828
steps:
2929
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
30+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
31+
with:
32+
targets: ${{ matrix.target }}
3033
- run: |
31-
./bin/build ${{ matrix.platform.target }} ${{ github.ref }}
34+
./bin/build ${{ matrix.target }} ${{ github.ref }}
3235
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3336
with:
34-
name: nb-${{ matrix.platform.target }}
37+
name: nb-${{ matrix.target }}
3538
path: nb-*
3639

3740
release:

0 commit comments

Comments
 (0)