mirror of
https://github.com/logos-blockchain/sponges.git
synced 2026-07-30 10:33:21 +00:00
The permutation does not have any `std`/`alloc` dependency. The current AEAD interface requires `alloc` (though we should migrate it to use the `aead` crate anyway).
83 lines
1.9 KiB
YAML
83 lines
1.9 KiB
YAML
name: ascon
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/ascon.yml"
|
|
- "ascon/**"
|
|
- "Cargo.*"
|
|
push:
|
|
branches: master
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ascon
|
|
|
|
env:
|
|
RUSTFLAGS: "-Dwarnings"
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
jobs:
|
|
set-msrv:
|
|
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
|
|
with:
|
|
msrv: 1.41.0
|
|
|
|
benches:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: RustCrypto/actions/cargo-cache@master
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly-2023-02-01
|
|
override: true
|
|
- run: cargo build --benches
|
|
|
|
build:
|
|
needs: set-msrv
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- ${{needs.set-msrv.outputs.msrv}}
|
|
- stable
|
|
target:
|
|
- thumbv7em-none-eabi
|
|
- wasm32-unknown-unknown
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: RustCrypto/actions/cargo-cache@master
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust }}
|
|
target: ${{ matrix.target }}
|
|
override: true
|
|
- run: cargo build --no-default-features --target ${{ matrix.target }}
|
|
|
|
minimal-versions:
|
|
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
|
|
with:
|
|
working-directory: ${{ github.workflow }}
|
|
|
|
test:
|
|
needs: set-msrv
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- ${{needs.set-msrv.outputs.msrv}}
|
|
- stable
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: RustCrypto/actions/cargo-cache@master
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
- run: cargo test --no-default-features
|
|
- run: cargo test
|