forked from ARMmbed/DAPLink
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.12 KB
/
build.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
48
49
50
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: 10.3-2021.10
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python module
run: pip3 install --user -r requirements.txt
- name: Check versions
run: |
set -ex
arm-none-eabi-gcc --version
cmake --version
ninja --version
python --version
- name: Compile
run: |
python tools/progen_compile.py -t cmake_gcc_arm -g ninja stm32f103xb_csk6_nanokit_bl stm32f103xb_csk6_nanokit_if
cp projectfiles/make_gcc_arm/*/build/*_if_crc.{bin,hex} .
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: firmware
path: |
*.bin
*.hex