Gen firmware on host runner #19
Workflow file for this run
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: Generate Firmware | |
on: | |
pull_request: | |
types: [opened, edited, review_requested, synchronize, review_request_removed, reopened] | |
branches: | |
- main | |
- iec_efr32 | |
env: | |
SECURITY: APP_SECURE=false | |
COMMAND: all | |
COMPONENT: all | |
jobs: | |
job1: | |
name: GCC-MG12 regression test | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
pull-requests: write | |
env: | |
HOST_IP: 192.168.1.69 | |
COMPILER: GCC | |
PLATFORM: MG12 | |
TOOL_DIRS: docker/gcc-arm-none-eabi-10.3-2021.10/bin | |
APP_TYPE: SecureApp | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Download a file | |
# You may pin to the exact commit or the version. | |
# uses: valitydev/action-download-file@7fb017bf38a45a6d420e5456e95f0b1ef966a20c | |
uses: valitydev/[email protected] | |
with: | |
# URL to file | |
url: https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 | |
# Target path | |
target-path: docker/ | |
- name: Prepare environment | |
run: | | |
cd docker | |
ls -la | |
tar xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 | |
ls -la | |
- name: Generate Firmware | |
run: | | |
pwd && | |
cd docker | |
ls -la | |
cd gcc-arm-none-eabi-10.3-2021.10/bin | |
ls -la | |
cd .. | |
ls -la | |
chmod -R 777 . | |
cd Test/ && | |
ls -la && | |
./generate_fw.sh $COMMAND $COMPONENT $PLATFORM $COMPILER $SECURITY | |
- name: Zip Release | |
# You may pin to the exact commit or the version. | |
# uses: TheDoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 | |
uses: TheDoctor0/[email protected] | |
with: | |
# Filename for archive | |
filename: firmware.7z | |
# Base path for archive files | |
path: artifact | |
# Working directory before zipping | |
directory: . | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: firmware | |
path: . | |
warn: Output a warning but do not fail the action | |
retention-days: 90 | |