Skip to content

Commit

Permalink
Merge branch 'update-workflows' into gen-firmware-on-host-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-bingocth authored Oct 9, 2024
2 parents f64e38a + c8a2f38 commit 419926e
Show file tree
Hide file tree
Showing 1,035 changed files with 250,909 additions and 7 deletions.
264 changes: 264 additions & 0 deletions .github/workflows/auto_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
name: Automation Trigger
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: [self-hosted, sqa-ds-hn-006]
permissions:
contents: read
pull-requests: write
env:
SERIAL_NUM: 440189400
HOST_IP: 192.168.1.69
COMPILER: GCC
PLATFORM: MG12
TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin
APP_TYPE: SecureApp
steps:
- name: Checkout
uses: actions/[email protected]
- name: Check working directory
run:
pwd &&
ls -la
- name: Prepare Test directory
run:
chmod -R 777 ./Test
- name: Testing
run:
cd Test/ &&
ls -la &&
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY
- name: Generate test report
run:
cd Test/ &&
ls -la &&
python test_script/get_report.py

- name: Upload result
uses: actions/[email protected]
with:
name: gcc_mg12_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: gcc_mg12_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: gcc_mg12_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job2:
if: (always())
needs: [job1]
name: GCC-MG24 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
contents: read
pull-requests: write
env:
SERIAL_NUM: 440133193
HOST_IP: 192.168.1.100
COMPILER: GCC
PLATFORM: MG24
TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin
APP_TYPE: SecureApp
steps:
- name: Checkout
uses: actions/[email protected]
- name: Check working directory
run:
pwd &&
ls -la
- name: Prepare Test directory
run:
chmod -R 777 ./Test
- name: Testing
run:
cd Test/ &&
ls -la &&
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY

- name: Generate test report
run:
cd Test/ &&
ls -la &&
python test_script/get_report.py

- name: Upload result
uses: actions/[email protected]
with:
name: gcc_mg24_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: gcc_mg24_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: gcc_mg24_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job3:
if: (always())
needs: [job1, job2]
name: IAR-MG12 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
contents: read
pull-requests: write
env:
SERIAL_NUM: 440189400
HOST_IP: 192.168.1.69
COMPILER: IAR
PLATFORM: MG12
TOOL_DIRS: /home/sqa/EmbeddedWorkbench8.4/arm/bin
APP_TYPE: SecureApp

steps:
- name: Checkout
uses: actions/[email protected]
- name: Check working directory
run:
pwd &&
ls -la
- name: Prepare Test directory
run:
chmod -R 777 ./Test

- name: Testing
run:
cd Test &&
ls -la &&
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY

- name: Generate test report
run:
cd Test/ &&
ls -la &&
python test_script/get_report.py

- name: Upload result
uses: actions/[email protected]
with:
name: iar_mg12_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: iar_mg12_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: iar_mg12_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job4:
if: (always())
needs: [job1, job2, job3]
name: IAR-MG24 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
contents: read
pull-requests: write
env:
SERIAL_NUM: 440133193
HOST_IP: 192.168.1.100
COMPILER: IAR
PLATFORM: MG24
TOOL_DIRS: /home/sqa/EmbeddedWorkbench8.4/arm/bin
APP_TYPE: SecureApp

steps:
- name: Checkout
uses: actions/[email protected]
- name: Check working directory
run:
pwd &&
ls -la
- name: Prepare Test directory
run:
chmod -R 777 ./Test
- name: Testing
run:
cd Test &&
ls -la &&
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY

- name: Generate test report
run:
cd Test/ &&
ls -la &&
python test_script/get_report.py

- name: Upload result
uses: actions/[email protected]
with:
name: iar_mg24_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: iar_mg24_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: iar_mg24_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90




19 changes: 19 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Hello World Workflow

on:
push:
branches:
- "*"
pull_request:
workflow_dispatch:

jobs:
print_hello:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Print Hello World
run: echo "Hello, World!"

Loading

0 comments on commit 419926e

Please sign in to comment.