-
Notifications
You must be signed in to change notification settings - Fork 23
29 lines (29 loc) · 1.27 KB
/
no_std_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: no_std
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
BuildAndTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
targets: thumbv6m-none-eabi
components: clippy
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Clippy
run: cargo +stable clippy --no-default-features -p mls-rs -- -D warnings
- name: Test
run: cargo +stable test --no-default-features --features test_util --verbose -p mls-rs --lib --test '*'
- name: Test Full RFC Compliance
run: cargo +stable test --no-default-features --features rfc_compliant,test_util --verbose -p mls-rs
- name: Build MLS Embedded
run: cargo +nightly build --package mls-rs --lib --no-default-features --target thumbv6m-none-eabi
- name: Build MLS Embedded Full RFC Compliance
run: cargo +nightly build --package mls-rs --lib --no-default-features --features rfc_compliant --target thumbv6m-none-eabi
- name: Build rust crypto embedded
run: cargo +nightly build --package mls-rs-crypto-rustcrypto --no-default-features --features "getrandom/custom" --target thumbv6m-none-eabi