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:
|
2021-12-26 10:15:32 +01:00
|
|
|
cache-name: cache-toolchain-10-2020-q4
|
2020-08-05 15:20:06 +02:00
|
|
|
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'
|
2021-12-24 10:27:52 +01:00
|
|
|
uses: fiam/arm-none-eabi-gcc@v1.0.4
|
2020-08-05 15:20:06 +02:00
|
|
|
with:
|
2021-12-24 10:27:52 +01:00
|
|
|
release: 10-2020-q4
|
2020-08-05 15:20:06 +02:00
|
|
|
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-29 21:01:21 +01:00
|
|
|
sudo apt-get install -y python3-sphinx python3-cryptography python3-cbor graphviz
|
2023-03-07 02:02:07 +01:00
|
|
|
sudo pip3 install recommonmark tomli
|
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
|
|
|
|
2021-12-31 18:39:50 +01:00
|
|
|
- name: Build extra apps
|
|
|
|
id: apps
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
|
|
|
|
make -j `nproc` apps
|
|
|
|
|
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
|
2021-12-31 18:39:50 +01:00
|
|
|
|
|
|
|
- name: Upload extra apps binaries
|
|
|
|
id: upload-apps
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: apps-${{ github.sha }}
|
|
|
|
path: apps/*.mpy
|