-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (37 loc) · 1.28 KB
/
push.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
42
43
44
45
46
47
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: alpine:3.15
strategy:
matrix:
model: ["TS100", "TS80", "TS80P", "MHP30", "S60P", "S60"]
fail-fast: true
steps:
- name: Install dependencies (apk)
run: apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi findutils make git python3 py3-pip
- name: Install dependencies (py)
run: pip3 install IntelHex
- uses: actions/checkout@v4
with:
submodules: true
- name: prep
run: mkdir -p /tmp/${{ matrix.model }}
- name: build runtime ${{ matrix.model }}
run: make all build_type=runtime model=${{ matrix.model }}
- name: cp outputs
run: cp build/*.hex build/*.dfu /tmp/${{ matrix.model }}
- name: build bootloader ${{ matrix.model }}
run: make clean && make all build_type=bootloader model=${{ matrix.model }}
- name: cp outputs
run: cp build/*.hex build/*.dfu /tmp/${{ matrix.model }}
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.model }}
path: |
/tmp/${{ matrix.model }}/*.hex
/tmp/${{ matrix.model }}/*.dfu
if-no-files-found: error