Skip to content

Commit 12777dd

Browse files
committed
Set RUSTFLAGS in workflow env
1 parent 49de144 commit 12777dd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
strategy:
2525
matrix:
2626
flags:
27-
- --cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\"
28-
- --cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"flume\"
29-
- --cfg async_executor_impl=\"tokio\" --cfg async_channel_impl=\"tokio\"
30-
- --cfg async_executor_impl=\"tokio\" --cfg async_channel_impl=\"flume\"
27+
- --cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"
28+
- --cfg async_executor_impl="async-std" --cfg async_channel_impl="flume"
29+
- --cfg async_executor_impl="tokio" --cfg async_channel_impl="tokio"
30+
- --cfg async_executor_impl="tokio" --cfg async_channel_impl="flume"
3131
runs-on: ubuntu-latest
3232
timeout-minutes: 60
33+
env:
34+
RUSTFLAGS: ${{ matrix.flags }}
3335
steps:
3436
- name: Checkout Repository
3537
uses: actions/checkout@v4
@@ -43,15 +45,15 @@ jobs:
4345
4446
- name: Build
4547
run: |
46-
RUSTFLAGS="${{ matrix.flags }}" cargo build --all-targets --workspace --release --features="logging-utils"
48+
cargo build --all-targets --workspace --release --features="logging-utils"
4749
4850
- name: Test
4951
run: |
50-
RUSTFLAGS="${{ matrix.flags }}" cargo test --all-targets --workspace --release --features="logging-utils"
52+
cargo test --all-targets --workspace --release --features="logging-utils"
5153
5254
- name: Lint
5355
run: |
54-
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
56+
cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
5557
5658
- name: Check semver
5759
uses: obi1kenobi/cargo-semver-checks-action@v2

0 commit comments

Comments
 (0)