Skip to content

Commit 5538850

Browse files
committed
Added buld-lms workflow
1 parent a4fe7d6 commit 5538850

2 files changed

Lines changed: 63 additions & 1 deletion

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Wolfboot Reusable Build Workflow
2+
3+
on:
4+
5+
workflow_call:
6+
inputs:
7+
arch:
8+
required: true
9+
type: string
10+
config-file:
11+
required: true
12+
type: string
13+
make-args:
14+
required: false
15+
type: string
16+
17+
jobs:
18+
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
submodules: true
26+
27+
- name: Workaround for sources.list
28+
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
29+
30+
- name: Update repository
31+
run: sudo apt-get update
32+
33+
- name: Install cross compilers
34+
run: |
35+
sudo apt-get install -y gcc-arm-none-eabi gcc-aarch64-linux-gnu gcc-powerpc-linux-gnu gnu-efi
36+
37+
- name: Create lib hash-sigs
38+
run: |
39+
mkdir -p lib/hash-sigs/lib
40+
41+
- name: Clone hash-sigs repository
42+
run: |
43+
git clone https://github.com/cisco/hash-sigs.git lib/hash-sigs/src && \
44+
cd lib/hash-sigs/src && git checkout b0631b8891295bf2929e68761205337b7c031726 && \
45+
git apply ../../../tools/lms/0001-Patch-to-support-wolfBoot-LMS-build.patch && \
46+
cd ../../..
47+
48+
- name: make clean
49+
run: |
50+
make distclean
51+
52+
- name: Select config
53+
run: |
54+
cp ${{inputs.config-file}} .config
55+
56+
- name: Build tools
57+
run: |
58+
make -C tools/keytools && make -C tools/bin-assemble
59+
60+
- name: Build wolfboot
61+
run: |
62+
make ${{inputs.make-args}}

.github/workflows/test-configs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
config-file: ./config/examples/stm32c0-rsa2048.config
170170

171171
stm32c0-lms-8-10-1:
172-
uses: ./.github/workflows/test-build.yml
172+
uses: ./.github/workflows/test-build-lms.yml
173173
with:
174174
arch: arm
175175
config-file: ./config/examples/stm32c0-lms-8-10-1.config

0 commit comments

Comments
 (0)