Skip to content

Commit

Permalink
.github: remove duplicate logic
Browse files Browse the repository at this point in the history
f979a7d bumped MSRV to 1.56.
  • Loading branch information
tamird committed Nov 19, 2023
1 parent e08b08e commit acf589c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- if: ${{ matrix.profile == 'dev' }}
name: Build & test dev
run: |
cargo build
cargo build --all-features
cargo test
# We need to duplicate the logic here, because up to 1.56 Cargo
# considers the --profile option unstable. Once our minimum
# supported Rust version is above that, we should remove the above
# block.
- if: ${{ matrix.rust == 'stable' && matrix.profile != 'dev'}}
name: Build & test release
- name: Build & test
run: |
cargo build --profile=${{ matrix.profile }}
cargo build --all-features --profile=${{ matrix.profile }}
Expand Down

0 comments on commit acf589c

Please sign in to comment.