From d20d00da710e23c29babdaf1c6f3f086720d0c9d Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 9 Jan 2025 10:05:46 +0100 Subject: [PATCH] don't enable all features on windows CI (to not use OpenSSL for SHA-256) --- .github/workflows/benchmark.yml | 4 ++-- .github/workflows/build-wheels.yml | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index a8445016e..41364fe33 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -60,12 +60,12 @@ jobs: python -m pip install clvm_tools colorama blspy chia-blockchain==2.1.2 clvm==0.9.8 - name: Build (windows) - if: matrix.os.matrix == 'windows' + if: matrix.os.matrix == 'windows-latest' run: | maturin develop --release -m wheel/Cargo.toml - name: Build (non-windows) - if: matrix.os.matrix != 'windows' + if: matrix.os.matrix != 'windows-latest' run: | maturin develop --release -m wheel/Cargo.toml --features=openssl diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 12363fe5b..f05646c12 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -319,10 +319,18 @@ jobs: echo "RUSTFLAGS=-Cinstrument-coverage" >> "$GITHUB_ENV" echo "LLVM_PROFILE_FILE=$(pwd)/target/chia_rs-%p-%m.profraw" >> "$GITHUB_ENV" echo "CARGO_TARGET_DIR=$(pwd)/target" >> "$GITHUB_ENV" - - name: cargo test + - name: cargo test (not windows) + if: matrix.os != 'windows-latest' run: cargo test --workspace --all-features - - name: cargo test (release) + - name: cargo test (release) (not windows) + if: matrix.os != 'windows-latest' run: cargo test --workspace --all-features --release + - name: cargo test (windows) + if: matrix.os == 'windows-latest' + run: cargo test --workspace + - name: cargo test (release) (windows) + if: matrix.os == 'windows-latest' + run: cargo test --workspace --release - name: Continue with coverage if: matrix.os == 'ubuntu-latest' run: |