mirror of
https://github.com/logos-blockchain/sponges.git
synced 2026-07-30 10:33:21 +00:00
Imports the source code of the `ascon` crate originally from: https://github.com/quininer/ascon Code is imported as of this commit: commit 997e51ff0cad48510ad31934f9c361d25bf5f938 Author: quininer kel <quininer@live.com> Date: Mon Feb 20 09:52:28 2017 +0800 refactor: remove no_std - Formatted code using rustfmt 1.5.1-stable (d5a82bbd 2023-02-07) - Fixed clippy nits from clippy 0.1.67 (d5a82bbd 2023-02-07) Dual licensed as Apache 2.0 + MIT Permission given here: https://github.com/RustCrypto/sponges/pull/30#discussion_r1103554334 Co-authored-by: quininer kel <quininer@live.com>
60 lines
1.2 KiB
YAML
60 lines
1.2 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
|
|
|
|
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
|