-
-
Notifications
You must be signed in to change notification settings - Fork 278
77 lines (74 loc) · 2.1 KB
/
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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
compile:
strategy:
fail-fast: false
matrix:
variant:
- nRF52DK
- BluzDK
- RedBearLab_nRF51822:version=1_0
- BBCmicrobit
- BBCmicrobitV2
- CalliopeMini
- CalliopeminiV3
- Generic_nRF51822:chip=xxac
- Generic_nRF52832
- Generic_nRF52833
- OSHChip
- STCT_nRF52_minidev
- PCA1000X:board_variant=pca10000
- PCA1000X:board_variant=pca10001
- PCA1000X:board_variant=nrf6310
- nRF51Dongle:version=1_1_0
- Blend2
- BLENano
- BLENano2
- TinyBLE
- bluey
- hackaBLE
- hackaBLE_v2
- Sinobit
- DWM1001-DEV
- SeeedArchLink
- Beacon_PCA20006
- Waveshare_BLE400
- ng_beacon
runs-on: ubuntu-latest
name: Compile ${{ matrix.variant }}
steps:
- uses: actions/checkout@v3
- name: Create blinky sketch to compile
run: |
mkdir blinky
cat > blinky/blinky.ino << EOF
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
EOF
- uses: arduino/compile-sketches@v1
with:
cli-version: latest
verbose: true
enable-deltas-report: true
platforms: |
# First we have to install this core so that the tooling is installed
- name: "sandeepmistry:nRF5"
source-url: "https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json"
version: latest
# Now, this will overwrite the core source to use the local version
- name: "sandeepmistry:nRF5"
source-path: .
fqbn: "sandeepmistry:nRF5:${{ matrix.variant }}"
sketch-paths: blinky