2020-11-06 20:49:24 +01:00
|
|
|
name: wasp-os binary distribution
|
2020-08-05 15:20:06 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-07 10:38:08 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-08-05 15:20:06 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout files
|
|
|
|
id: checkout-files
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Check the cached arm-none-eabi-gcc compiler
|
|
|
|
id: cache-toolchain
|
|
|
|
uses: actions/cache@v2
|
|
|
|
env:
|
|
|
|
cache-name: cache-toolchain
|
|
|
|
with:
|
|
|
|
path: ${{ runner.temp }}/arm-none-eabi
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
|
|
|
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}
|
|
|
|
|
|
|
|
- name: Install arm-none-eabi-gcc
|
|
|
|
id: install-toolchain
|
|
|
|
# installs arm-none-eabi if the CI environment can't find it in the cache
|
|
|
|
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
|
|
|
uses: fiam/arm-none-eabi-gcc@v1.0.2
|
|
|
|
with:
|
|
|
|
release: 9-2019-q4
|
|
|
|
directory: ${{ runner.temp }}/arm-none-eabi
|
|
|
|
|
2020-11-06 20:49:24 +01:00
|
|
|
- name: Install packages
|
|
|
|
id: install-packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2020-11-07 10:38:08 +01:00
|
|
|
sudo apt-get install -y python3-sphinx python3-recommonmark python3-cryptography python3-cbor
|
2020-11-06 20:49:24 +01:00
|
|
|
|
|
|
|
- name: Update submodules
|
|
|
|
id: update-submodules
|
2020-08-05 15:20:06 +02:00
|
|
|
run: |
|
|
|
|
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
|
2020-11-06 20:49:24 +01:00
|
|
|
make -j `nproc` submodules
|
2020-08-05 15:20:06 +02:00
|
|
|
|
2020-11-06 20:49:24 +01:00
|
|
|
- name: Download softdevice
|
|
|
|
id: download-softdevice
|
2020-08-05 15:20:06 +02:00
|
|
|
run: |
|
|
|
|
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
|
2020-11-06 20:49:24 +01:00
|
|
|
make -j `nproc` softdevice
|
2020-08-05 15:20:06 +02:00
|
|
|
|
2020-11-06 20:49:24 +01:00
|
|
|
- name: Build wasp-os binary distribution
|
|
|
|
id: binary-distribution
|
2020-08-05 15:20:06 +02:00
|
|
|
run: |
|
|
|
|
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
|
2020-11-06 20:49:24 +01:00
|
|
|
make -j `nproc` VERSION=${{ github.sha }} dist
|
|
|
|
mv ../wasp-os-${{ github.sha }}.tar.gz .
|
2020-08-05 15:20:06 +02:00
|
|
|
|
2020-11-07 10:38:08 +01:00
|
|
|
- name: Upload full binary distribution
|
2020-11-06 20:49:24 +01:00
|
|
|
id: upload-binaries
|
2020-08-05 15:20:06 +02:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-11-06 20:49:24 +01:00
|
|
|
name: wasp-os-${{ github.sha }}
|
2020-11-07 10:38:08 +01:00
|
|
|
path: wasp-os-${{ github.sha }}.tar.gz
|
|
|
|
|
|
|
|
- name: Upload pinetime binaries
|
|
|
|
id: upload-pinetime
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pinetime-${{ github.sha }}
|
|
|
|
path: build-pinetime
|
|
|
|
|
|
|
|
- name: Upload Colmi P8 binaries
|
|
|
|
id: upload-p8
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: p8-${{ github.sha }}
|
|
|
|
path: build-p8
|
|
|
|
|
|
|
|
- name: Upload Senbono K9 binaries
|
|
|
|
id: upload-k9
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: k9-${{ github.sha }}
|
|
|
|
path: build-k9
|