forked from wolfSSL/wolfBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GitHub action build tests for NXP parts (iMX RT, Kinetis and LPC).
- Loading branch information
1 parent
802ebdc
commit 6ea1a1e
Showing
21 changed files
with
426 additions
and
212 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Wolfboot Reusable Build Workflow for MCUXpresso SDK | ||
|
||
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 | ||
|
||
- uses: actions/checkout@main | ||
with: | ||
repository: nxp-mcuxpresso/mcux-sdk | ||
path: mcux-sdk | ||
|
||
- uses: actions/checkout@main | ||
with: | ||
repository: nxp-mcuxpresso/CMSIS_5 | ||
path: CMSIS_5 | ||
|
||
- 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 | ||
- name: make distclean | ||
run: | | ||
make distclean | ||
- name: Select config | ||
run: | | ||
cp ${{inputs.config-file}} .config && make include/target.h | ||
- name: Build tools | ||
run: | | ||
make -C tools/keytools && make -C tools/bin-assemble | ||
- name: Build wolfboot | ||
run: | | ||
make MCUXSDK=1 MCUXPRESSO="$GITHUB_WORKSPACE/mcux-sdk" MCUXPRESSO_CMSIS="$GITHUB_WORKSPACE/CMSIS_5/CMSIS" ${{inputs.make-args}} V=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
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
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
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
Oops, something went wrong.