diff --git a/.github/workflows/sha2.yml b/.github/workflows/sha2.yml index ccdab96d6..59429e223 100644 --- a/.github/workflows/sha2.yml +++ b/.github/workflows/sha2.yml @@ -91,3 +91,28 @@ 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 + - run: cargo test --target ${{ matrix.target }} --release --features asm diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml index 916fc0c87..37f3715d5 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