Skip to content

Commit 4979c44

Browse files
committed
Build/Test --all-features for action matrix
For the wasm32 build, we replace --package <<redundant>> with --features cloudevents-reqwest Signed-off-by: Jim Crossley <[email protected]>
1 parent 69f16a5 commit 4979c44

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/rust_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ jobs:
6060
with:
6161
command: build
6262
toolchain: ${{ matrix.toolchain }}
63-
args: --target ${{ matrix.target }} --workspace
63+
args: --target ${{ matrix.target }} --workspace --all-features
6464
- uses: actions-rs/cargo@v1
6565
name: "Test"
6666
if: matrix.target == 'x86_64-unknown-linux-gnu'
6767
with:
6868
command: test
6969
toolchain: ${{ matrix.toolchain }}
70-
args: --target ${{ matrix.target }} --workspace
70+
args: --target ${{ matrix.target }} --workspace --all-features
7171

7272
# If musl, compile and test all
7373
- uses: actions-rs/cargo@v1
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
command: build
7878
toolchain: ${{ matrix.toolchain }}
79-
args: --target ${{ matrix.target }} --workspace
79+
args: --target ${{ matrix.target }} --workspace --all-features
8080
env:
8181
CC: musl-gcc
8282
CXX: g++
@@ -86,7 +86,7 @@ jobs:
8686
with:
8787
command: test
8888
toolchain: ${{ matrix.toolchain }}
89-
args: --target ${{ matrix.target }} --workspace
89+
args: --target ${{ matrix.target }} --workspace --all-features
9090
env:
9191
CC: musl-gcc
9292
CXX: g++
@@ -97,7 +97,7 @@ jobs:
9797
with:
9898
command: build
9999
toolchain: ${{ matrix.toolchain }}
100-
args: --target wasm32-unknown-unknown --package cloudevents-sdk
100+
args: --target wasm32-unknown-unknown --features cloudevents-reqwest
101101

102102
# Build examples
103103
- uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)