Skip to content

Commit 5c22636

Browse files
carlosperatesandeepmistry
authored andcommitted
CI: Add GitHub Actions workflow to build blinky with all variants.
Replace the README badge and remove the TravisCI config file.
1 parent 52127a2 commit 5c22636

File tree

3 files changed

+77
-46
lines changed

3 files changed

+77
-46
lines changed

.github/workflows/compile.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
compile:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
variant:
15+
- nRF52DK
16+
- BluzDK
17+
- RedBearLab_nRF51822:version=1_0
18+
- BBCmicrobit
19+
- BBCmicrobitV2
20+
- CalliopeMini
21+
- Generic_nRF51822:chip=xxac
22+
- Generic_nRF52832
23+
- Generic_nRF52833
24+
- OSHChip
25+
- STCT_nRF52_minidev
26+
- PCA1000X:board_variant=pca10000
27+
- PCA1000X:board_variant=pca10001
28+
- PCA1000X:board_variant=nrf6310
29+
- nRF51Dongle:version=1_1_0
30+
- Blend2
31+
- BLENano
32+
- BLENano2
33+
- TinyBLE
34+
- bluey
35+
- hackaBLE
36+
- hackaBLE_v2
37+
- Sinobit
38+
- DWM1001-DEV
39+
- SeeedArchLink
40+
- Beacon_PCA20006
41+
- Waveshare_BLE400
42+
- ng_beacon
43+
runs-on: ubuntu-latest
44+
name: Compile ${{ matrix.variant }}
45+
steps:
46+
- uses: actions/checkout@v3
47+
- name: Create blinky sketch to compile
48+
run: |
49+
mkdir blinky
50+
cat > blinky/blinky.ino << EOF
51+
void setup() {
52+
pinMode(LED_BUILTIN, OUTPUT);
53+
}
54+
55+
void loop() {
56+
digitalWrite(LED_BUILTIN, HIGH);
57+
delay(1000);
58+
digitalWrite(LED_BUILTIN, LOW);
59+
delay(1000);
60+
}
61+
EOF
62+
- uses: arduino/compile-sketches@v1
63+
with:
64+
cli-version: latest
65+
verbose: true
66+
enable-deltas-report: true
67+
platforms: |
68+
# First we have to install this core so that the tooling is installed
69+
- name: "sandeepmistry:nRF5"
70+
source-url: "https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json"
71+
version: latest
72+
# Now, this will overwrite the core source to use the local version
73+
- name: "sandeepmistry:nRF5"
74+
source-path: .
75+
fqbn: "sandeepmistry:nRF5:${{ matrix.variant }}"
76+
sketch-paths: blinky

.travis.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Arduino Core for Nordic Semiconductor nRF5 based boards
22

3-
[![Build Status](https://travis-ci.org/sandeepmistry/arduino-nRF5.svg?branch=master)](https://travis-ci.org/sandeepmistry/arduino-nRF5) [![OpenCollective](https://opencollective.com/arduino-nRF5/backers/badge.svg)](#backers)
3+
[![Build Status](https://github.com/sandeepmistry/arduino-nRF5/actions/workflows/compile.yml/badge.svg)](https://github.com/sandeepmistry/arduino-nRF5/actions/workflows/compile.yml) [![OpenCollective](https://opencollective.com/arduino-nRF5/backers/badge.svg)](#backers)
44
[![OpenCollective](https://opencollective.com/arduino-nRF5/sponsors/badge.svg)](#sponsors)
55

66

0 commit comments

Comments
 (0)