Skip to content

Commit 4edcb7b

Browse files
authored
ci: add workflow for ascon-xof128 (#844)
Additionally fixes trigger conditions for ascon-hash256.
1 parent 719cce5 commit 4edcb7b

2 files changed

Lines changed: 74 additions & 2 deletions

File tree

.github/workflows/ascon-hash256.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: ascon-hash256
33
on:
44
pull_request:
55
paths:
6-
- ".github/workflows/ascon-hash.yml"
7-
- "ascon-hash/**"
6+
- ".github/workflows/ascon-hash256.yml"
7+
- "ascon-hash256/**"
88
- "Cargo.*"
99
push:
1010
branches: master

.github/workflows/ascon-xof128.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: ascon-xof128
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/ascon-xof128.yml"
7+
- "ascon-xof128/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
defaults:
13+
run:
14+
working-directory: ascon-xof128
15+
16+
env:
17+
RUSTFLAGS: "-Dwarnings"
18+
CARGO_INCREMENTAL: 0
19+
20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
set-msrv:
27+
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
28+
with:
29+
msrv: 1.85.0
30+
31+
build:
32+
needs: set-msrv
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
rust:
37+
- ${{needs.set-msrv.outputs.msrv}}
38+
- stable
39+
target:
40+
- thumbv7em-none-eabi
41+
- wasm32-unknown-unknown
42+
steps:
43+
- uses: actions/checkout@v6
44+
- uses: RustCrypto/actions/cargo-cache@master
45+
- uses: dtolnay/rust-toolchain@master
46+
with:
47+
toolchain: ${{ matrix.rust }}
48+
targets: ${{ matrix.target }}
49+
- uses: RustCrypto/actions/cargo-hack-install@master
50+
- run: cargo hack build --target ${{ matrix.target }} --each-feature --exclude-features default,std
51+
52+
minimal-versions:
53+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
54+
with:
55+
working-directory: ${{ github.workflow }}
56+
57+
test:
58+
needs: set-msrv
59+
runs-on: ubuntu-latest
60+
strategy:
61+
matrix:
62+
rust:
63+
- ${{needs.set-msrv.outputs.msrv}}
64+
- stable
65+
steps:
66+
- uses: actions/checkout@v6
67+
- uses: RustCrypto/actions/cargo-cache@master
68+
- uses: dtolnay/rust-toolchain@master
69+
with:
70+
toolchain: ${{ matrix.rust }}
71+
- uses: RustCrypto/actions/cargo-hack-install@master
72+
- run: cargo hack test --feature-powerset

0 commit comments

Comments
 (0)