Skip to content

Commit

Permalink
Set RUSTFLAGS in workflow env
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Apr 2, 2024
1 parent 49de144 commit 12777dd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ jobs:
strategy:
matrix:
flags:
- --cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\"
- --cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"flume\"
- --cfg async_executor_impl=\"tokio\" --cfg async_channel_impl=\"tokio\"
- --cfg async_executor_impl=\"tokio\" --cfg async_channel_impl=\"flume\"
- --cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"
- --cfg async_executor_impl="async-std" --cfg async_channel_impl="flume"
- --cfg async_executor_impl="tokio" --cfg async_channel_impl="tokio"
- --cfg async_executor_impl="tokio" --cfg async_channel_impl="flume"
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: ${{ matrix.flags }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -43,15 +45,15 @@ jobs:
- name: Build
run: |
RUSTFLAGS="${{ matrix.flags }}" cargo build --all-targets --workspace --release --features="logging-utils"
cargo build --all-targets --workspace --release --features="logging-utils"
- name: Test
run: |
RUSTFLAGS="${{ matrix.flags }}" cargo test --all-targets --workspace --release --features="logging-utils"
cargo test --all-targets --workspace --release --features="logging-utils"
- name: Lint
run: |
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
Expand Down

0 comments on commit 12777dd

Please sign in to comment.