Skip to content

Commit c67a74b

Browse files
committed
Consolidate target definitions
1 parent 13c6aa9 commit c67a74b

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,9 @@ jobs:
2727
- uses: dtolnay/rust-toolchain@stable
2828
with:
2929
toolchain: ${{ matrix.toolchain }}
30-
target: "wasm32-unknown-unknown"
30+
targets: "wasm32-unknown-unknown,i686-unknown-linux-gnu,x86_64-unknown-linux-musl"
3131
profile: minimal
3232
override: true
33-
# multiple additional targets are not supported, so we invoke the action multiple times
34-
# Feature request: https://github.com/actions-rs/toolchain/issues/165
35-
- uses: dtolnay/rust-toolchain@stable
36-
with:
37-
toolchain: ${{ matrix.toolchain }}
38-
profile: minimal
39-
target: "i686-unknown-linux-gnu"
40-
- uses: dtolnay/rust-toolchain@stable
41-
with:
42-
toolchain: ${{ matrix.toolchain }}
43-
profile: minimal
44-
target: "x86_64-unknown-linux-musl"
4533
- name: "Test on the native x86_64-unknown-linux-gnu"
4634
run: cargo test --all-features --workspace
4735
- name: "Test cross-compiling to x86_64-unknown-linux-musl"

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
toolchain: ${{ matrix.toolchain }}
3030
profile: minimal
3131
override: true
32-
target: "wasm32-unknown-unknown"
32+
targets: "wasm32-unknown-unknown"
3333
- run: cargo test --all-features --workspace

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
toolchain: ${{ matrix.toolchain }}
3030
profile: minimal
3131
override: true
32-
target: "wasm32-unknown-unknown"
32+
targets: "wasm32-unknown-unknown"
3333
- name: "Test on the native x86_64-pc-windows-mscv"
3434
run: cargo test --all-features --workspace
3535
- name: "Test when cross-compiling to x86_64-pc-windows-gnu"

0 commit comments

Comments
 (0)