Skip to content

Commit

Permalink
sha2: cross-compiled tests
Browse files Browse the repository at this point in the history
Adds initial testing on `aarch64` (64-bit ARM)
  • Loading branch information
tarcieri committed Nov 25, 2020
1 parent 716d870 commit fd8e9f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/sha2.yml
Expand Up @@ -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
2 changes: 1 addition & 1 deletion sha2/Cargo.toml
Expand Up @@ -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

0 comments on commit fd8e9f6

Please sign in to comment.