Accept any x25519 public key #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: to work on CI, use https://github.com/nektos/act 👍 | |
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
# need atomic CAS, so Cortex-M0/1 are out | |
QEMU_TARGET: thumbv7m-none-eabi | |
jobs: | |
test: | |
# want QEMU >=4 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install build dependencies | |
shell: bash | |
run: | | |
sudo apt-get update -y -qq >/dev/null | |
sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev make time >/dev/null | |
cc --version | |
- uses: actions-rs/toolchain@v1 | |
name: Install Rust stable/x86_64-unknown-linux-gnu | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Check that all crates build without warning | |
run: RUSTFLAGS='--deny warnings' cargo check --all | |
shell: bash | |
# - name: Check clippy output (lenient mode) | |
# # run: RUSTFLAGS='--deny warnings' cargo clippy --all | |
# run: cargo clippy --all | |
# shell: bash | |
- name: Build PC | |
run: cargo build --release | |
shell: bash | |
- uses: actions-rs/toolchain@v1 | |
name: Install Rust stable/thumbv7em-none-eabi | |
with: | |
profile: minimal | |
toolchain: stable | |
target: thumbv7em-none-eabi | |
override: true | |
- name: Build Cortex-M4 | |
run: cargo build --release --target thumbv7em-none-eabi | |
shell: bash | |
- name: Install QEMU (>=4) | |
run: | | |
sudo apt-get update -qq >/dev/null | |
sudo apt-get install -qq qemu-system-arm >/dev/null | |
qemu-system-arm --version | |
- uses: actions-rs/toolchain@v1 | |
name: Install Rust stable/thumbv8m.main-none-eabi | |
with: | |
profile: minimal | |
toolchain: stable | |
target: thumbv8m.main-none-eabi | |
override: true | |
- name: Run all of the tests, including QEMU tests | |
run: make test | |
shell: bash | |