Build/Test --all-features for action matrix

For the wasm32 build, we replace --package <<redundant>> with --features cloudevents-reqwest

Signed-off-by: Jim Crossley <jim@crossleys.org>
This commit is contained in:
Jim Crossley 2021-06-23 15:35:44 -04:00
parent 69f16a5144
commit 4979c44532
1 changed files with 5 additions and 5 deletions

View File

@ -60,14 +60,14 @@ jobs:
with:
command: build
toolchain: ${{ matrix.toolchain }}
args: --target ${{ matrix.target }} --workspace
args: --target ${{ matrix.target }} --workspace --all-features
- uses: actions-rs/cargo@v1
name: "Test"
if: matrix.target == 'x86_64-unknown-linux-gnu'
with:
command: test
toolchain: ${{ matrix.toolchain }}
args: --target ${{ matrix.target }} --workspace
args: --target ${{ matrix.target }} --workspace --all-features
# If musl, compile and test all
- uses: actions-rs/cargo@v1
@ -76,7 +76,7 @@ jobs:
with:
command: build
toolchain: ${{ matrix.toolchain }}
args: --target ${{ matrix.target }} --workspace
args: --target ${{ matrix.target }} --workspace --all-features
env:
CC: musl-gcc
CXX: g++
@ -86,7 +86,7 @@ jobs:
with:
command: test
toolchain: ${{ matrix.toolchain }}
args: --target ${{ matrix.target }} --workspace
args: --target ${{ matrix.target }} --workspace --all-features
env:
CC: musl-gcc
CXX: g++
@ -97,7 +97,7 @@ jobs:
with:
command: build
toolchain: ${{ matrix.toolchain }}
args: --target wasm32-unknown-unknown --package cloudevents-sdk
args: --target wasm32-unknown-unknown --features cloudevents-reqwest
# Build examples
- uses: actions-rs/cargo@v1