Update generate_firmware.yaml #41
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: | |
push: | |
env: | |
TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin | |
SDK_PATH: /home/sqa/SimplicityStudio/SDKs/gecko_sdk | |
TOOL_CHAINS: GCC | |
START_ADDR_FLASH: 0x8000000 | |
jobs: | |
job1: | |
name: Generate Firmware | |
runs-on: [self-hosted, ds-sqa-hn-iec] | |
permissions: | |
contents: read | |
pull-requests: write | |
env: | |
HOST_IP: 192.168.1.69 | |
COMPILER: GCC | |
PLATFORM: MG12 | |
APP_TYPE: SecureApp | |
SECURITY: APP_SECURE=false | |
COMMAND: all | |
COMPONENT: all | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: create-unit-test-functions-in-lib-iec60730 | |
- name: Prepare environment | |
run: | | |
curl -o slc_cli_linuz.zip -L https://www.silabs.com/documents/login/software/slc_cli_linux.zip | |
tar -xzf ./slc_cli_linux.zip | |
export PATH="$PWD/slc_cli_linux/slc_cli/:$PATH" | |
wget https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz | |
export SDK_PATH=~/SimplicityStudio/SDKs/gecko_sdk | |
export TOOL_DIRS=~/Downloads/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin | |
export TOOL_CHAINS=GCC | |
export START_ADDR_FLASH=0x8000000 | |
slc configuration --sdk=$SDK_PATH --gcc-toolchain=/Applications/ARM | |
cd make | |
make clean_all | |
make build COMPONENT=cpu_registers DERIVATIVE=efr32mg21a020f1024im32 NON_SECURE_EN=false APP_SECURE=true | |
ls -la | |
cd .. | |
ls -la | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: firmware | |
path: artifact | |
warn: Output a warning but do not fail the action | |
retention-days: 90 | |