From 716d87097adb51e796ec03aee4bb077ae6b56e42 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 25 Nov 2020 11:34:10 -0800 Subject: [PATCH] sha2: Windows tests (#209) Adds initial tests for MinGW environments --- .github/workflows/sha2.yml | 24 ++++++++++++++++++++++++ sha2/Cargo.toml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sha2.yml b/.github/workflows/sha2.yml index ccdab96d..24699a00 100644 --- a/.github/workflows/sha2.yml +++ b/.github/workflows/sha2.yml @@ -91,3 +91,27 @@ jobs: - run: cargo test --release --no-default-features - run: cargo test --release - run: cargo test --release --features asm + + # Windows tests + windows: + strategy: + matrix: + include: + # 64-bit Windows (GNU) + # TODO(tarcieri): try re-enabling this when we bump MSRV + #- target: x86_64-pc-windows-gnu + # toolchain: 1.41.0 # MSRV + - target: x86_64-pc-windows-gnu + toolchain: stable + + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.toolchain }} + target: ${{ matrix.target }} + override: true + - uses: msys2/setup-msys2@v2 + - run: cargo test --target ${{ matrix.target }} --release diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml index 916fc0c8..37f3715d 100644 --- a/sha2/Cargo.toml +++ b/sha2/Cargo.toml @@ -35,6 +35,6 @@ hex-literal = "0.2" default = ["std"] std = ["digest/std"] asm = ["sha2-asm", "libc"] -compress = [] # Expose compress function +compress = [] # Expose compress function force-soft = [] # Force software implementation asm-aarch64 = ["asm"] # DEPRECATED: use `asm` instead