-
Notifications
You must be signed in to change notification settings - Fork 28
69 lines (55 loc) · 2.07 KB
/
firmwares.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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