-
Notifications
You must be signed in to change notification settings - Fork 21
32 lines (28 loc) · 1.11 KB
/
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
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/Air-duino/Arduino-pack-json-ci/releases/download/Nightly/package_air_index.json
~/bin/arduino-cli core install AirM2M:[email protected] --additional-urls https://github.com/Air-duino/Arduino-pack-json-ci/releases/download/Nightly/package_air_index.json
- name: replace package
run: |
rm -rf ~/.arduino15/packages/AirM2M/hardware/AirMCU/0.4.4/
git submodule update --init --recursive
cp -r /home/runner/work/Arduino-AirMCU/Arduino-AirMCU ~/.arduino15/packages/AirM2M/hardware/AirMCU/0.4.4/
- name: build
run: |
cd libraries
python test.py