forked from RodrigoDornelles/3bc-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 974 Bytes
/
compiler-avr-gcc.yaml
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
name: Compiler avr-gcc
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
arduino:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
path: project
- name: Checkout arduino-cli
run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
- name: Configure arduino-cli
run: |
./bin/arduino-cli config init
./bin/arduino-cli config set library.enable_unsafe_install true
./bin/arduino-cli core install arduino:avr
- name: Prepare project
run: |
zip -r lib.zip project/*
mv ./project/examples/ArduinoHelloworld/ArduinoHelloworld.ino ./bin/bin.ino
./bin/arduino-cli lib install --zip-path lib.zip
- name: Build project
run: |
cd bin/
./arduino-cli compile --fqbn arduino:avr:uno