|
| 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