-
Notifications
You must be signed in to change notification settings - Fork 111
executable file
·105 lines (98 loc) · 2.98 KB
/
ci.yml
File metadata and controls
executable file
·105 lines (98 loc) · 2.98 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: CI
on:
workflow_dispatch:
pull_request:
branches:
- "**"
jobs:
micro_ros_platformio_arduino:
runs-on: ubuntu-20.04
container: ubuntu:20.04
strategy:
fail-fast: false
matrix:
pio-environment:
- teensy41
- teensy40
- teensy36
- teensy35
- teensy31
- due
- zero
- olimex_e407
- esp32dev
- nanorp2040connect
- portenta_h7_m7
- teensy41_eth
- nanorp2040connect_wifi
- portenta_h7_m7_wifi
- esp32dev_wifi
- portenta_h7_m7_galactic
- portenta_h7_m7_foxy
- portenta_h7_m7_rolling
- teensy41_custom
- pico
steps:
- uses: actions/checkout@v3
with:
path: repo
- name: Install environment
uses: ./repo/.github/actions/platformio-env
- name: Build
shell: bash
run: |
export PATH=$PATH:~/.platformio/penv/bin
cd repo/ci/arduino
pio run -e ${{ matrix.pio-environment }}
micro_ros_platformio_stm32cube:
runs-on: ubuntu-20.04
container: ubuntu:20.04
strategy:
fail-fast: false
matrix:
pio-environment:
- nucleo_f103rb
- nucleo_f767zi
steps:
- uses: actions/checkout@v3
with:
path: repo
- name: Install STM32CubeMX
env:
CUBEMX_LINK: http://files.fictionlab.pl/en.stm32cubemx-lin_v6-3-0.zip
run: |
apt update
export DEBIAN_FRONTEND=noninteractive
apt install -y wget unzip python3-pip expect fontconfig xvfb libxrender1 libxtst6 libxi6
wget -q -O cubemx.zip $CUBEMX_LINK
unzip -q cubemx.zip -d cubemx
expect -f - <<EOF
set timeout 30
spawn ./cubemx/SetupSTM32CubeMX-6.3.0 -console
expect -exact "Press 1 to continue, 2 to quit, 3 to redisplay\r"
send -- "1\r"
expect -exact "Press Enter to continue, X to exit\r"
send -- "\r"
expect -exact "Press 1 to accept, 2 to reject, 3 to redisplay\r"
send -- "1\r"
expect -exact "Press Enter to continue, X to exit\r"
send -- "\r"
expect -exact "Press 1 to accept, 2 to reject, anything else to redisplay\r"
send -- "2\r"
expect -exact "Select target path \[/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX\] \r"
send -- "\r"
expect -exact "Enter Y for Yes, N for No: \r"
send -- "N\r"
expect eof
EOF
pip3 install stm32pio
- name: Install environment
uses: ./repo/.github/actions/platformio-env
- name: Build
shell: bash
run: |
export PATH=$PATH:~/.platformio/penv/bin
cd repo/ci/stm32cube
cp ioc/${{ matrix.pio-environment }}.ioc .
xvfb-run --auto-servernum stm32pio -v generate
pio run -e ${{ matrix.pio-environment }}