Skip to content

Commit 5b2b688

Browse files
authored
Actionci (#95)
* add ci yml * more test * fix submodule * use checkout v1 with submodule * run build_all * get mergehex * test path * mergehex * path test * more path test * path test * clean up yml * use action ci badge
1 parent e25b63a commit 5b2b688

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/githubci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Setup Python
14+
uses: actions/setup-python@v1
15+
16+
- name: Setup Node.js
17+
uses: actions/[email protected]
18+
19+
- name: Checkout Code
20+
uses: actions/checkout@v1
21+
with:
22+
submodules: true
23+
24+
- name: Install Toolchains
25+
run: |
26+
pip3 install adafruit-nrfutil
27+
wget https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform --post-data=fileid=8F19D314130548209E75EFFADD9348DB -O cli-tools.tar
28+
tar -xv -f cli-tools.tar
29+
echo "::add-path::$GITHUB_WORKSPACE/mergehex"
30+
npm install --global xpm
31+
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
32+
echo "::add-path::`echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin`"
33+
34+
- name: Build
35+
run: python3 tools/build_all.py
36+
37+
- name: Upload release
38+
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
39+
run: echo Upload... Bin files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Adafruit nRF52 Bootloader
22

3-
[![Build Status](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader)
3+
[![Build Status](https://github.com/adafruit/Adafruit_nRF52_Bootloader/workflows/Build/badge.svg)](https://github.com/adafruit/Adafruit_nRF52_Bootloader/actions)
44

55
This is a CDC/DFU/UF2 bootloader for nRF52 boards.
66

0 commit comments

Comments
 (0)