-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (68 loc) · 2.04 KB
/
generate_firmware.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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 &&
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