From fcb595c06dc7697a0ee663f6a5d3d9c60593f94d Mon Sep 17 00:00:00 2001 From: orxfun Date: Fri, 11 Apr 2025 12:43:00 +0200 Subject: [PATCH 1/2] ci with and without features --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cd3ad4..4ef8172 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: strategy: matrix: toolchain: ["stable"] + features: ["", "--features serde"] steps: - uses: actions/checkout@v4 @@ -35,24 +36,24 @@ jobs: run: cargo install cargo-no-std-check - name: Build - run: cargo build --features serde --verbose + run: cargo build --verbose ${{ matrix.features }} - name: Build-32bit - run: cargo build --features serde --verbose --target i686-unknown-linux-musl + run: cargo build --verbose --target i686-unknown-linux-musl ${{ matrix.features }} - name: Build-wasm - run: cargo build --features serde --verbose --target wasm32v1-none + run: cargo build --verbose --target wasm32v1-none ${{ matrix.features }} - name: Test - run: cargo test --features serde --verbose + run: cargo test --verbose ${{ matrix.features }} - name: Test-32bit - run: cargo test --features serde --verbose --target i686-unknown-linux-musl + run: cargo test --verbose --target i686-unknown-linux-musl ${{ matrix.features }} - name: Check-wasm - run: cargo check --features serde --verbose --target wasm32v1-none + run: cargo check --verbose --target wasm32v1-none ${{ matrix.features }} - name: Clippy - run: cargo clippy --features serde -- -D warnings --verbose + run: cargo clippy -- -D warnings --verbose ${{ matrix.features }} - name: Miri - run: cargo +nightly miri test --features serde --verbose + run: cargo +nightly miri test --verbose ${{ matrix.features }} - name: NoStd - run: cargo +nightly no-std-check --features serde + run: cargo +nightly no-std-check ${{ matrix.features }} From 599b94f69cf7ed94a67d4a36b74c7a7e79ee9dc4 Mon Sep 17 00:00:00 2001 From: orxfun Date: Fri, 11 Apr 2025 12:46:31 +0200 Subject: [PATCH 2/2] ci fix clippy command --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ef8172..9804dee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: cargo check --verbose --target wasm32v1-none ${{ matrix.features }} - name: Clippy - run: cargo clippy -- -D warnings --verbose ${{ matrix.features }} + run: cargo clippy ${{ matrix.features }} -- -D warnings --verbose - name: Miri run: cargo +nightly miri test --verbose ${{ matrix.features }}