Skip to content

Commit

Permalink
WIP Add cross tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Dec 16, 2021
1 parent cbd6849 commit 3738f08
Show file tree
Hide file tree
Showing 17 changed files with 535 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/blake2.yml
Expand Up @@ -3,6 +3,7 @@ name: blake2
on:
pull_request:
paths:
- ".github/workflows/blake2.yml"
- "blake2/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -65,3 +66,35 @@ 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.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package blake2 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/fsb.yml
Expand Up @@ -3,6 +3,7 @@ name: fsb
on:
pull_request:
paths:
- ".github/workflows/fsb.yml"
- "fsb/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package fsb --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/gost94.yml
Expand Up @@ -3,6 +3,7 @@ name: gost94
on:
pull_request:
paths:
- ".github/workflows/gost94.yml"
- "gost94/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package gost94 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/groestl.yml
Expand Up @@ -3,6 +3,7 @@ name: groestl
on:
pull_request:
paths:
- ".github/workflows/groestl.yml"
- "groestl/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package groestl --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/k12.yml
Expand Up @@ -3,6 +3,7 @@ name: k12
on:
pull_request:
paths:
- ".github/workflows/k12.yml"
- "k12/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package k12 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/md2.yml
Expand Up @@ -3,6 +3,7 @@ name: md2
on:
pull_request:
paths:
- ".github/workflows/md2.yml"
- "md2/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package md2 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/md4.yml
Expand Up @@ -3,6 +3,7 @@ name: md4
on:
pull_request:
paths:
- ".github/workflows/md4.yml"
- "md4/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package md4 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/md5.yml
Expand Up @@ -3,6 +3,7 @@ name: md5
on:
pull_request:
paths:
- ".github/workflows/md5.yml"
- "md5/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -58,3 +59,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --features asm

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package md5 --target ${{ matrix.target }}
33 changes: 33 additions & 0 deletions .github/workflows/ripemd.yml
Expand Up @@ -3,6 +3,7 @@ name: ripemd
on:
pull_request:
paths:
- ".github/workflows/ripemd.yml"
- "ripemd/**"
- "Cargo.*"
push:
Expand Down Expand Up @@ -55,3 +56,35 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- aarch64-unknown-linux-gnu
- mips-unknown-linux-gnu

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@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package ripemd --target ${{ matrix.target }}

0 comments on commit 3738f08

Please sign in to comment.