-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (25 loc) · 1.28 KB
/
build-test.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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python Wheel
run: pip install wheel
- name: Install PlatformIO Core
run: pip install -U platformio
- name: Copy generic config over
run: cp myConfig.example.h myConfig.h
- name: Install PlatformIO dependencies
run: pio pkg install
- name: Copy F412ZG variant files
run: |
mkdir -p ~/.platformio/platforms/ststm32/boards
mkdir -p ~/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F412Z\(E-G\)\(J-T\)
cp -rv f412zg_variant_files/nucleo_f412zg.json ~/.platformio/platforms/ststm32/boards/nucleo_f412zg.json
cp -rv f412zg_variant_files/ldscript.ld ~/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F412Z\(E-G\)\(J-T\)/ldscript.ld
cp -rv f412zg_variant_files/variant_NUCLEO_F412ZG.h ~/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F412Z\(E-G\)\(J-T\)/variant_NUCLEO_F412ZG.h
cp -rv f412zg_variant_files/variant_NUCLEO_F412ZG.cpp ~/.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F412Z\(E-G\)\(J-T\)/variant_NUCLEO_F412ZG.cpp
- name: Compile EX-IOExpander (all default platforms)
run: python -m platformio run