diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml new file mode 100644 index 0000000..0994f57 --- /dev/null +++ b/.github/workflows/githubci.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + pull_request: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v1 + + - name: Setup Node.js + uses: actions/setup-node@v1.1.0 + + - name: Checkout Code + uses: actions/checkout@v1 + with: + submodules: true + + - name: Install Toolchains + run: | + pip3 install adafruit-nrfutil + wget https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform --post-data=fileid=8F19D314130548209E75EFFADD9348DB -O cli-tools.tar + tar -xv -f cli-tools.tar + echo "::add-path::$GITHUB_WORKSPACE/mergehex" + npm install --global xpm + xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest + echo "::add-path::`echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin`" + + - name: Build + run: python3 tools/build_all.py + + - name: Upload release + if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested') + run: echo Upload... Bin files diff --git a/README.md b/README.md index 1ff0cb6..4dcc83f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Adafruit nRF52 Bootloader -[![Build Status](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader) +[![Build Status](https://github.com/adafruit/Adafruit_nRF52_Bootloader/workflows/Build/badge.svg)](https://github.com/adafruit/Adafruit_nRF52_Bootloader/actions) This is a CDC/DFU/UF2 bootloader for nRF52 boards.