-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (66 loc) · 2.2 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: build tests
on:
push:
branches: [ chibios-21.11.x ]
pull_request:
branches: [ chibios-21.11.x ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: '10-2020-q4'
- name: setup vars
run: |
echo "CH_VER=stable_21.11.x" >> $GITHUB_ENV
echo "CHC_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: download Chibios
run: |
curl -L https://github.com/ChibiOS/ChibiOS/archive/$CH_VER.tar.gz | tar xz
echo "CH_PATH=$GITHUB_WORKSPACE/ChibiOS-$CH_VER" >> $GITHUB_ENV
- name: decompress ChibiOS ext resources
run: |
cd $CH_PATH/ext
for i in *.7z; do 7z x -y "$i"; done
- name: decompress ChibiOS-Contrib ext resources
run: |
cd $CHC_PATH/ext
for i in *.7z; do 7z x -y "$i"; done
- name: build STM32
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/STM32
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/STM32
- name: build NRF51
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/NRF51
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/NRF51
- name: build NRF52
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/NRF52
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/NRF52
- name: build Kinetis
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/KINETIS
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/KINETIS
- name: build LPC
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/LPC
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/LPC
- name: build HT32
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/HT32
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/HT32
- name: build WB32
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/WB32
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/WB32
- name: build NUMICRO
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/NUMICRO
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/NUMICRO
- name: build RP
run: |
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/RP
$CHC_PATH/tools/chbuild.sh $CHC_PATH/demos/RP