-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (28 loc) · 1.11 KB
/
test.yml
File metadata and controls
32 lines (28 loc) · 1.11 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
name: test
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: environment prepare
run: |
cd ~
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.33.0
~/bin/arduino-cli version
~/bin/arduino-cli config init
- name: install package
run: |
~/bin/arduino-cli core update-index --additional-urls https://github.com/PY32Duino/Arduino-pack-json-ci/releases/download/Nightly/package_py32_index.json
~/bin/arduino-cli core install PY32Duino:PY32@0.1.2 --additional-urls https://github.com/PY32Duino/Arduino-pack-json-ci/releases/download/Nightly/package_py32_index.json
- name: replace package
run: |
rm -rf ~/.arduino15/packages/PY32Duino/hardware/PY32/0.1.2/
git submodule update --init --recursive
cp -r /home/runner/work/Arduino-PY32/Arduino-PY32 ~/.arduino15/packages/PY32Duino/hardware/PY32/0.1.2/
- name: build
run: |
cd libraries
python test.py