Skip to content

Commit

Permalink
Add VAES jobs to aes CI
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanshade committed Feb 13, 2024
1 parent c0c53d9 commit d5c3e6f
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions .github/workflows/aes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ defaults:
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
SDE_FULL_VERSION: "9.33.0-2024-01-07"

jobs:
# Builds for no_std platforms
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}
working-directory: ${{ github.workflow }}

# Tests for the AES-NI backend
aesni:
Expand Down Expand Up @@ -96,6 +97,60 @@ jobs:
- run: cargo test --target ${{ matrix.target }} --features hazmat
- run: cargo test --target ${{ matrix.target }} --all-features

# Tests for the VAES AVX backend
vaes256:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sde64 -icl --"
RUSTFLAGS: "-Dwarnings -C target-cpu=icelake-client --cfg disable_avx512"
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
rust: nightly-2024-02-07
steps:
- uses: actions/checkout@v4
- uses: silvanshade/rustcrypto-actions/intel-sde-install@master
with:
sde-full-version: ${{ env.SDE_FULL_VERSION }}
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --features hazmat
- run: cargo test --target ${{ matrix.target }} --all-features

# Tests for the VAES AVX512 backend
vaes512:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sde64 -icl --" # target CPU: Ice Lake
RUSTFLAGS: "-Dwarnings -C target-cpu=icelake-client"
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
rust: nightly-2024-02-07
steps:
- uses: actions/checkout@v4
- uses: silvanshade/rustcrypto-actions/intel-sde-install@master
with:
sde-full-version: ${{ env.SDE_FULL_VERSION }}
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --features hazmat
- run: cargo test --target ${{ matrix.target }} --all-features

# Tests for CPU feature autodetection with fallback to portable software implementation
autodetect:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -159,7 +214,6 @@ jobs:
- run: cargo test --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --all-features


# Cross-compiled tests
cross:
strategy:
Expand Down

0 comments on commit d5c3e6f

Please sign in to comment.