Skip to content

Commit

Permalink
Added buld-lms workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Apr 11, 2024
1 parent a4fe7d6 commit 5538850
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
62 changes: 62 additions & 0 deletions .github/workflows/test-build-lms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Wolfboot Reusable Build Workflow

on:

workflow_call:
inputs:
arch:
required: true
type: string
config-file:
required: true
type: string
make-args:
required: false
type: string

jobs:

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Workaround for sources.list
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list

- name: Update repository
run: sudo apt-get update

- name: Install cross compilers
run: |
sudo apt-get install -y gcc-arm-none-eabi gcc-aarch64-linux-gnu gcc-powerpc-linux-gnu gnu-efi
- name: Create lib hash-sigs
run: |
mkdir -p lib/hash-sigs/lib
- name: Clone hash-sigs repository
run: |
git clone https://github.com/cisco/hash-sigs.git lib/hash-sigs/src && \
cd lib/hash-sigs/src && git checkout b0631b8891295bf2929e68761205337b7c031726 && \
git apply ../../../tools/lms/0001-Patch-to-support-wolfBoot-LMS-build.patch && \
cd ../../..
- name: make clean
run: |
make distclean
- name: Select config
run: |
cp ${{inputs.config-file}} .config
- name: Build tools
run: |
make -C tools/keytools && make -C tools/bin-assemble
- name: Build wolfboot
run: |
make ${{inputs.make-args}}
2 changes: 1 addition & 1 deletion .github/workflows/test-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
config-file: ./config/examples/stm32c0-rsa2048.config

stm32c0-lms-8-10-1:
uses: ./.github/workflows/test-build.yml
uses: ./.github/workflows/test-build-lms.yml
with:
arch: arm
config-file: ./config/examples/stm32c0-lms-8-10-1.config
Expand Down

0 comments on commit 5538850

Please sign in to comment.