diff --git a/.github/workflows/sha2.yml b/.github/workflows/sha2.yml index 24699a00..0474741b 100644 --- a/.github/workflows/sha2.yml +++ b/.github/workflows/sha2.yml @@ -115,3 +115,27 @@ jobs: override: true - uses: msys2/setup-msys2@v2 - run: cargo test --target ${{ matrix.target }} --release + + # Cross-compiled tests + cross: + strategy: + matrix: + include: + # ARM64 + #- target: aarch64-unknown-linux-gnu + # rust: 1.41.0 # MSRV + - target: aarch64-unknown-linux-gnu + rust: stable + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + - run: cargo install cross + - run: cross test --target ${{ matrix.target }} --release + - run: cross test --target ${{ matrix.target }} --release --features asm diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml index 37f3715d..916fc0c8 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