File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed
Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ name : arm-gcc
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - develop
8+ pull_request :
9+ branches :
10+ - main
11+ - develop
12+
13+ jobs :
14+ build :
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ os : [ubuntu-24.04]
19+ app : [hid-keyboard]
20+ board : [frdmk22f]
21+ preset : [release]
22+ runs-on : ${{ matrix.os }}
23+ env :
24+ ARM_GCC_DIR : /usr
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+
29+ - name : Set up Python
30+ uses : actions/setup-python@v5
31+ with :
32+ python-version : 3.11
33+
34+ - name : Install west
35+ run : pip3 install --user -U west
36+
37+ - name : Install python dependencies of scripts
38+ run : |
39+ pip install -r scripts/requirements.txt
40+
41+ - name : Git config
42+ shell : bash
43+ run : |
44+ git config --global user.name "github-actions[bot]"
45+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
46+
47+ - name : West init
48+ shell : bash
49+ run : |
50+ west init -l .
51+
52+ - name : Fetch SDK
53+ shell : bash
54+ run : |
55+ west update && west patch
56+
57+ - name : Install build dependencies
58+ run : |
59+ sudo apt-get install -y gcc-arm-none-eabi
60+
61+ - name : Build firmware
62+ working-directory : ${{ matrix.app }}
63+ shell : bash
64+ run : |
65+ BOARD=${{ matrix.board }} west build -d ${{ matrix.preset }} -- --preset ${{ matrix.preset }}
66+
67+ - name : Archive firmware
68+ uses : actions/upload-artifact@v4
69+ with :
70+ name : ${{ matrix.app }}
71+ path : |
72+ ${{ matrix.app }}/${{ matrix.preset }}/${{ matrix.app }}.elf
You can’t perform that action at this time.
0 commit comments