forked from jrsteensen/OpenHornet-Software
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.34 KB
/
ci.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Continuous Integration
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- 'main'
- 'develop'
jobs:
compile-sketches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/setup-python@v4
- name: Install pyserial
run: pip install pyserial
- name: Install Arduino Tools
run: sudo apt-get install -y arduino arduino-core-avr
- name: Cache esp32 Dependencies
uses: actions/cache@v3
with:
path: libraries/arduino-esp32/tools/dist/
key: ${{ runner.os }}-${{ hashFiles('.gitmodules') }}
- name: Install esp32 Tools
run: |
cd libraries/arduino-esp32/tools/
python3 get.py
# Recursively build all sketches with Makefiles
- name: Compile Sketches
run: |
cd embedded
make all
# Upload .eep and .hex files as artifacts with expiration
- name: Prep Artifacts
run: |
cd embedded
make release
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: firmware
path: release/
retention-days: 7