-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 2.05 KB
/
build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'Build firmware'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install dependencies and arduino compiler cli
run: |
sudo apt-get update && apt-get install -y curl git build-essential ffmpeg arduino-mk && apt-get clean
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
arduino-cli config init
arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/main/package_sparkfun_apollo3_index.json
arduino-cli core update-index
arduino-cli core install "Sparkfun:[email protected]"
arduino-cli lib update-index
arduino-cli lib install "Embedded Template Library ETL"
touch $HOME/Arduino/libraries/Embedded_Template_Library_ETL/src/etl.h
arduino-cli lib install Time
arduino-cli lib install "SparkFun Qwiic Power Switch Arduino Library"
arduino-cli lib install "SparkFun u-blox GNSS Arduino [email protected]"
arduino-cli lib install IridiumSBDi2c
arduino-cli lib install "Adafruit [email protected]"
arduino-cli lib install "Adafruit [email protected]"
arduino-cli lib install "Adafruit LIS3MDL"
arduino-cli lib install "Adafruit [email protected]"
arduino-cli lib install "[email protected]"
# Get Jean's fixed libs
cd $HOME/Arduino/libraries
rm -rf Adafruit_BusIO
git clone -b "fix/SPI_with_Artemis" --depth=1 https://github.com/jerabaul29/Adafruit_BusIO.git
rm -rf Adafruit_LSM6DS
git clone -b "feat/propagate_bool_flags" --depth=1 https://github.com/jerabaul29/Adafruit_LSM6DS.git
rm -rf OneWire
git clone -b "feat/Artemis_compatible" --depth=1 https://github.com/jerabaul29/OneWire.git
# - name: Run tests
# run: docker run -it omb-2024-nano