forked from DualTachyon/uv-k5-firmware
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (34 loc) · 984 Bytes
/
main.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
on:
push:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'
- name: Install Python dependencies
run: python -m pip install --upgrade pip crcmod
- name: Checkout
uses: actions/checkout@v3
- name: Submodules
run: git submodule update --init --recursive --depth 1
- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=MinSizeDeb .
- name: Make
run: make
- name: size
run: arm-none-eabi-size firmware.elf
- name: symbols
run: arm-none-eabi-nm firmware.elf > symbols.txt
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: symbols
path: symbols.txt