-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (56 loc) · 2.03 KB
/
Copy pathtest.yml
File metadata and controls
60 lines (56 loc) · 2.03 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
name: test
on:
push:
pull_request:
workflow_dispatch:
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: boards/platform checks
run: python3 scripts/check_boards.py
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- fqbn: PY32Duino:PY32:GenF030:pnum=PY32F030x8
examples: true
- fqbn: PY32Duino:PY32:GenF003:pnum=PY32F003x8
examples: true
- fqbn: PY32Duino:PY32:GenF002A
examples: false
steps:
- uses: actions/checkout@v4
- name: environment prepare
run: |
cd ~
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/0.33.0/install.sh | sh -s 0.33.0
echo "$HOME/bin" >> "$GITHUB_PATH"
~/bin/arduino-cli version
~/bin/arduino-cli config init
- name: install package
run: |
arduino-cli core update-index --additional-urls https://github.com/PY32Duino/Arduino-pack-json-ci/releases/download/Nightly/package_py32_index.json
arduino-cli core install PY32Duino:PY32@0.1.3 --additional-urls https://github.com/PY32Duino/Arduino-pack-json-ci/releases/download/Nightly/package_py32_index.json
- name: replace package
run: |
rm -rf "$HOME/.arduino15/packages/PY32Duino/hardware/PY32/0.1.3"
mkdir -p "$HOME/.arduino15/packages/PY32Duino/hardware/PY32/0.1.3"
git submodule update --init --recursive
cp -a "$GITHUB_WORKSPACE/." "$HOME/.arduino15/packages/PY32Duino/hardware/PY32/0.1.3/"
- name: smoke compile
env:
FQBN: ${{ matrix.fqbn }}
run: |
mkdir -p /tmp/py32-smoke
printf 'void setup() {}\nvoid loop() {}\n' > /tmp/py32-smoke/py32-smoke.ino
arduino-cli compile -b "$FQBN" /tmp/py32-smoke
- name: build library examples
if: matrix.examples == true
env:
FQBN: ${{ matrix.fqbn }}
run: |
python3 libraries/test.py