diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b972bb..2e2fcbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -43,23 +45,28 @@ 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: Install cargo-semver-checks + uses: baptiste0928/cargo-install@v3 + with: + crate: cargo-semver-checks + + - name: Check semver + run: cargo semver-checks publish: needs: - build runs-on: ubuntu-latest - env: - RUST_LOG: info - RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\"" steps: - uses: actions/checkout@v4 - uses: katyo/publish-crates@v2