From 8c8cd686b5a634518f59b6ae1c1ced5fb18a7a91 Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Mon, 9 Sep 2024 08:55:22 +0800 Subject: [PATCH] ci test features --- .github/workflows/rust.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e97cb25..73d6974 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,7 +26,6 @@ jobs: strategy: matrix: rust: [msrv, latest] - features: [ no_std, std ] include: - os: ubuntu-latest target: x86_64-unknown-linux-gnu @@ -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/')