-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.16 KB
/
build-firmware.yml
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
name: Build firmware
on:
push:
paths:
- 'device/firmware/**'
workflow_dispatch:
jobs:
build:
name: Build FSK-EEM firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: check toolchain cache
id: toolchain-cache
uses: actions/cache@v4
with:
path: toolchain/arm-none-eabi
key: arm-none-eabi
- name: download and extract toolchain
if: steps.toolchain-cache.outputs.cache-hit != 'true'
run: |
url="https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz?rev=e434b9ea4afc4ed7998329566b764309&hash=CA590209F5774EE1C96E6450E14A3E26"
mkdir toolchain
curl -L $url | tar -xJf - -C toolchain
mv toolchain/`ls toolchain` toolchain/arm-none-eabi
- name: build firmware
run: |
cd device/firmware
make GCC_PATH=../../toolchain/arm-none-eabi/bin
- uses: actions/upload-artifact@v4
with:
name: firmware
path: device/firmware/build/firmware.*