Debian Codegraph @

.github/workflows/rust.yml

raw symbols SCIP
1 name: Test Generated Rust
2
3 on:
4 push:
5 pull_request:
6 merge_group:
7 schedule:
8 - cron: '0 0 1 * *'
9
10 defaults:
11 run:
12 working-directory: fiat-rust
13
14 concurrency:
15 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16 cancel-in-progress: true
17
18 jobs:
19 test-rust:
20
21 runs-on: ubuntu-latest
22
23 steps:
24 - uses: actions/checkout@v4
25 - name: cargo build
26 run: cargo build --verbose
27 - name: cargo test
28 run: cargo test --verbose
29 - name: curve25519-dalek test
30 run: (cd .. ; etc/ci/test-fiat-rust-curve25519-dalek.sh)
31 - name: crate-crypto/Ed448-Goldilocks test
32 run: (cd .. ; etc/ci/test-fiat-rust-crate-crypto-Ed448-Goldilocks.sh)
33
34 build-nostd:
35 name: Build on no_std target (thumbv7em-none-eabi)
36 runs-on: ubuntu-latest
37
38 steps:
39 - uses: actions/checkout@v4
40 - uses: dtolnay/rust-toolchain@master
41 with:
42 toolchain: stable
43 targets: thumbv7em-none-eabi
44 - uses: taiki-e/install-action@cargo-hack
45 # No default features build
46 - name: no_std / no feat fiat-crypto
47 run: cargo build -p fiat-crypto --target thumbv7em-none-eabi --release --no-default-features
48 - name: no_std / cargo hack fiat-crypto
49 run: cargo hack build -p fiat-crypto --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std
50
51 test-rust-check-all:
52 runs-on: ubuntu-latest
53 needs: [test-rust, build-nostd]
54 if: always()
55 steps:
56 - uses: actions/checkout@v4
57 - run: echo 'The triggering workflow (test-rust) passed'
58 if: ${{ needs.test-rust.result == 'success' }}
59 - run: echo 'The triggering workflow (test-rust) failed' && false
60 if: ${{ needs.test-rust.result != 'success' }}
61 - run: echo 'The triggering workflow (build-nostd) passed'
62 if: ${{ needs.build-nostd.result == 'success' }}
63 - run: echo 'The triggering workflow (build-nostd) failed' && false
64 if: ${{ needs.build-nostd.result != 'success' }}