Skip to content

Commit

Permalink
fix ci for use with RUSTFLAGS (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Aug 31, 2023
1 parent f20b827 commit 0519c0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
build:
strategy:
matrix:
features:
- "async-std-executor,channel-async-std,logging-utils"
- "async-std-executor,channel-flume,logging-utils"
- "tokio-executor,channel-tokio,logging-utils"
- "tokio-executor,channel-flume,logging-utils"
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"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand All @@ -37,12 +37,12 @@ jobs:
- name: Build
run: |
cargo build --all-targets --workspace --features "${{ matrix.features }}" --release
RUSTFLAGS="${{ matrix.flags }}" cargo build --all-targets --workspace --features logging-utils --release
- name: Test
run: |
cargo test --release --all-targets --workspace --features "${{ matrix.features }}"
RUSTFLAGS="${{ matrix.flags }}" cargo test --all-targets --workspace --features logging-utils --release
- name: Lint
run: |
cargo clippy --workspace --all-targets --features "${{ matrix.features }}" --bins --tests --examples -- -D warnings
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --features logging-utils --bins --tests --examples -- -D warnings
17 changes: 9 additions & 8 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
build:
strategy:
matrix:
features:
- "async-std-executor,channel-async-std,logging-utils"
- "async-std-executor,channel-flume,logging-utils"
- "tokio-executor,channel-tokio,logging-utils"
- "tokio-executor,channel-flume,logging-utils"
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"
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ github.actor != 'dependabot[bot]' }}
Expand All @@ -36,12 +36,13 @@ jobs:
- name: Build
run: |
nix develop -c cargo build --all-targets --workspace --features "${{ matrix.features }}" --release
nix develop -c RUSTFLAGS="${{ matrix.flags }}" cargo build --all-targets --workspace --features logging-utils --release
- name: Test
run: |
nix develop -c cargo test --release --all-targets --workspace --features "${{ matrix.features }}"
nix develop -c RUSTFLAGS="${{ matrix.flags }}" cargo test --all-targets --workspace --features logging-utils --release
- name: Lint
run: |
nix develop -c cargo clippy --workspace --all-targets --features "${{ matrix.features }}" --bins --tests --examples -- -D warnings
nix develop -c RUSTFLAGS="${{ matrix.flags }}" cargo clippy --all-targets --workspace --features logging-utils --release --bins --tests --examples -- -D warnings

0 comments on commit 0519c0c

Please sign in to comment.