Fix clippy warnings #1
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
name: Firmwares | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
firmwares: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
path: trussed | |
- name: Checkout solokeys/solo2 | |
run: git clone https://github.com/solokeys/solo2 solo2 | |
- name: Checkout Nitrokey/nitrokey-3-firmware | |
run: git clone https://github.com/Nitrokey/nitrokey-3-firmware nk3 | |
- name: Install littlefs2-sys/micro-ecc-sys/nitrokey-3-firmware build dependencies | |
shell: bash | |
run: | | |
apt-get update && apt-get install sudo | |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev clang git python3-toml | |
- uses: fiam/arm-none-eabi-gcc@v1 | |
with: | |
release: "10-2020-q4" | |
- name: Install rustup toolchain | |
run: | | |
rustup show | |
rustup component add llvm-tools-preview | |
rustup target add thumbv8m.main-none-eabi | |
- name: cargo install cargo-binutils | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-binutils | |
version: latest | |
use-tool-cache: true | |
- name: cargo install flip-link | |
uses: actions-rs/[email protected] | |
with: | |
crate: flip-link | |
version: latest | |
use-tool-cache: true | |
- name: Patch solo2 trussed-dependency | |
run: | | |
echo "[patch.crates-io]" >> solo2/runners/lpc55/Cargo.toml | |
echo "trussed = { path = '../../../trussed' }" >> solo2/runners/lpc55/Cargo.toml | |
- name: Patch Nk3 trussed-dependency -> currently not, as we already patch trussed | |
run: | | |
echo "[patch.crates-io]" >> nk3/runners/lpc55/Cargo.toml | |
echo "trussed = { git = 'https://github.com/trussed-dev/trussed' }" >> nk3/runners/lpc55/Cargo.toml | |
- name: Build Solo2 Firmware | |
run: make build-release -C solo2/runners/lpc55 | |
- name: Build Nitrokey-3 Firmware | |
run: make -C nk3/runners/embedded |