mirror of
https://github.com/RustCrypto/hashes.git
synced 2026-01-25 04:18:20 +00:00
blake2: backport BE tests (#368)
This commit is contained in:
29
.github/actions/cross-tests/action.yml
vendored
Normal file
29
.github/actions/cross-tests/action.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: "cross-tests"
|
||||
|
||||
inputs:
|
||||
rust:
|
||||
required: true
|
||||
package:
|
||||
required: true
|
||||
target:
|
||||
required: true
|
||||
features:
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ inputs.rust }}
|
||||
target: ${{ inputs.target }}
|
||||
override: true
|
||||
- uses: RustCrypto/actions/cross-install@master
|
||||
- run: cross test
|
||||
--package ${{ inputs.package }}
|
||||
--target ${{ inputs.target }}
|
||||
--no-default-features
|
||||
--features ${{ inputs.features }}
|
||||
shell: bash
|
||||
27
.github/workflows/blake2.yml
vendored
27
.github/workflows/blake2.yml
vendored
@@ -65,3 +65,30 @@ jobs:
|
||||
- run: cargo test --features simd
|
||||
- run: cargo test --features simd_opt
|
||||
- run: cargo test --features simd_asm
|
||||
|
||||
# Cross-compiled tests
|
||||
cross:
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- 1.51 # 1.41-1.50 `--features` can't be used inside virtual manifest
|
||||
- stable
|
||||
target:
|
||||
- aarch64-unknown-linux-gnu
|
||||
- mips-unknown-linux-gnu
|
||||
features:
|
||||
- default
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
# Cross mounts only current package, i.e. by default it ignores workspace's Cargo.toml
|
||||
working-directory: .
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/cross-tests
|
||||
with:
|
||||
rust: ${{ matrix.rust }}
|
||||
package: ${{ github.workflow }}
|
||||
target: ${{ matrix.target }}
|
||||
features: ${{ matrix.features }}
|
||||
|
||||
16
Cargo.lock
generated
16
Cargo.lock
generated
@@ -45,9 +45,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.72"
|
||||
version = "1.0.73"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
|
||||
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
|
||||
|
||||
[[package]]
|
||||
name = "cfg-if"
|
||||
@@ -128,9 +128,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "hex-literal"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0"
|
||||
checksum = "d70693199b3cf4552f3fa720b54163927a3ebed2aef240efaf556033ab336a11"
|
||||
dependencies = [
|
||||
"hex-literal-impl",
|
||||
"proc-macro-hack",
|
||||
@@ -138,9 +138,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "hex-literal-impl"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46"
|
||||
checksum = "59448fc2f82a5fb6907f78c3d69d843e82ff5b051923313cc4438cb0c7b745a8"
|
||||
dependencies = [
|
||||
"proc-macro-hack",
|
||||
]
|
||||
@@ -161,9 +161,9 @@ checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.112"
|
||||
version = "0.2.118"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
|
||||
checksum = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94"
|
||||
|
||||
[[package]]
|
||||
name = "md-5"
|
||||
|
||||
Reference in New Issue
Block a user