Skip to content

Commit

Permalink
ci test features
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 9, 2024
1 parent f50b9c6 commit 8c8cd68
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
strategy:
matrix:
rust: [msrv, latest]
features: [ no_std, std ]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
Expand All @@ -47,13 +46,11 @@ jobs:
run: echo RUSTFLAGS='-Dwarnings' >> $GITHUB_ENV
- run: rustup update
- run: cargo version
- run: cargo build --target ${{ matrix.target }}
- name: Run tests with no_std
if: matrix.features == 'no_std'
run: cargo test --target ${{ matrix.target }} --no-default-features
- name: Run tests with std
if: matrix.features == 'std'
run: cargo test --target ${{ matrix.target }} --features std
- uses: stellar/binaries@v30
with:
name: cargo-hack
version: 0.5.28
- run: cargo-hack hack --feature-powerset --target ${{ matrix.sys.target }}

publish-dry-run:
if: startsWith(github.head_ref, 'release/')
Expand Down

0 comments on commit 8c8cd68

Please sign in to comment.