-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.77 KB
/
ci-compile.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
32
33
34
####################################################################################################
## YAML file for github Actions that will attempt to compile the c++ artefacts using the Arduino ##
## CLI for various platforms. ##
## ##
## Version Date Developer Comments ##
## ======= ========== ============== ============================================================ ##
## 1.0.0 2021-01-15 SV-Zanshin Cloned from default ##
## ##
####################################################################################################
name: 'Build'
on:
push:
pull_request:
workflow_dispatch:
jobs:
compile-on-platforms:
name: 'Compile using Arduino IDE on selected platforms'
runs-on: ubuntu-latest
steps:
- name: 'Install "python 3.x" package'
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: 'Checkout the repository from github'
uses: actions/checkout@v2
- name: 'Checkout the "Zanduino/Common" repository from github'
uses: actions/checkout@v2
with:
repository: Zanduino/Common
path: Common
- name: 'Install Arduino CLI package'
run: bash ${GITHUB_WORKSPACE}/Common/Scripts/install_arduino_cli.sh
- name: 'Run master compile python program'
run: python3 ${GITHUB_WORKSPACE}/Common/Python/build_platform.py uno leonardo mega2560 protrinket_5v flora feather32u4