Commit 5c22636b authored by Carlos Pereira Atencio's avatar Carlos Pereira Atencio Committed by Sandeep Mistry

CI: Add GitHub Actions workflow to build blinky with all variants.

Replace the README badge and remove the TravisCI config file.
parent 52127a20
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
- 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
language: generic
addons:
apt:
packages:
- libc6:i386
- libstdc++6:i386
env:
global:
- IDE_VERSION=1.8.5
before_install:
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
- mv arduino-$IDE_VERSION $HOME/arduino-ide
- export PATH=$PATH:$HOME/arduino-ide
- arduino --pref "boardsmanager.additional.urls=https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json" --install-boards sandeepmistry:nRF5 > /dev/null
- buildExampleSketch() { arduino --verbose-build --verify --board $1 $HOME/arduino-ide/examples/$2/$3/$3.ino; }
install:
- mkdir -p $HOME/Arduino/hardware/sandeepmistry
- ln -s $PWD $HOME/Arduino/hardware/sandeepmistry/nRF5
script:
- buildExampleSketch sandeepmistry:nRF5:nRF52DK 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:BluzDK 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:BLENano:version=1_0 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:RedBearLab_nRF51822:version=1_0 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:BBCmicrobit 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:CalliopeMini 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Generic_nRF51822:chip=xxac 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Generic_nRF52832 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:OSHChip 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:STCT_nRF52_minidev 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:PCA1000X:board_variant=pca10000 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:PCA1000X:board_variant=pca10001 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:PCA1000X:board_variant=nrf6310 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:nRF51Dongle:version=1_1_0 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Blend2 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:BLENano2 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:TinyBLE 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:bluey 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:hackaBLE 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:hackaBLE_v2 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Sinobit 01.Basics BareMinimum
- buildExampleSketch sandeepmistry:nRF5:DWM1001-DEV 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:SeeedArchLink 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:Generic_nRF52833 01.Basics Blink
- buildExampleSketch sandeepmistry:nRF5:BBCmicrobitV2 01.Basics Blink
# Arduino Core for Nordic Semiconductor nRF5 based boards # Arduino Core for Nordic Semiconductor nRF5 based boards
[![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) [![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)
[![OpenCollective](https://opencollective.com/arduino-nRF5/sponsors/badge.svg)](#sponsors) [![OpenCollective](https://opencollective.com/arduino-nRF5/sponsors/badge.svg)](#sponsors)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment