-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.38 KB
/
run-build.yaml
File metadata and controls
51 lines (41 loc) · 1.38 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
name: build
on:
push:
branches:
- main
paths-ignore:
- '.docs/**'
- '.tests/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Localise artifacts
run: |
mkdir NullPacketComms/
cp README.md NullPacketComms/
cp LICENSE.md NullPacketComms/
cp keywords.txt NullPacketComms/
cp library.properties NullPacketComms/
cp src/NullPacketComms.cpp NullPacketComms/
cp src/NullPacketComms.h NullPacketComms/
- name: Create zip of artifacts
uses: edgarrc/action-7z@v1.0.5
with:
args: 7z a -y -tzip -mx9 NullPacketComms.zip ./NullPacketComms/
- name: Check Build on Example Compiles
env:
ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL: true
run: |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.32.2
bin/arduino-cli core update-index
bin/arduino-cli core install arduino:avr
bin/arduino-cli lib install --zip-path NullPacketComms.zip
bin/arduino-cli --fqbn arduino:avr:nano compile examples/simple_example/
- name: Upload the Build
uses: actions/upload-artifact@v3
with:
name: null-packet-comms-artifacts
path: NullPacketComms.zip