1
0
Fork 0

actions: Replace the matrix buils with the makefile dist rule

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-11-06 19:49:24 +00:00 committed by Daniel Thompson
parent a851015cea
commit 20b626f5c2

View file

@ -1,4 +1,4 @@
name: CI for wasp-os name: wasp-os binary distribution
on: on:
push: push:
@ -8,10 +8,6 @@ on:
jobs: jobs:
build: build:
strategy:
matrix:
board: [pinetime, p8]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -19,15 +15,6 @@ jobs:
id: checkout-files id: checkout-files
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Check cached Python modules
id: cache-pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Check the cached arm-none-eabi-gcc compiler - name: Check the cached arm-none-eabi-gcc compiler
id: cache-toolchain id: cache-toolchain
uses: actions/cache@v2 uses: actions/cache@v2
@ -47,40 +34,36 @@ jobs:
release: 9-2019-q4 release: 9-2019-q4
directory: ${{ runner.temp }}/arm-none-eabi directory: ${{ runner.temp }}/arm-none-eabi
- name: Make submodules - name: Install packages
id: make-submodules id: install-packages
run: |
sudo apt-get update
sudo apt-get install -y python3-sphinx python3-recommonmark
- name: Update submodules
id: update-submodules
run: | run: |
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
make -j BOARD=${{ matrix.board }} submodules make -j `nproc` submodules
- name: Make softdevice - name: Download softdevice
id: make-softdevice id: download-softdevice
run: | run: |
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
make -j BOARD=${{ matrix.board }} softdevice make -j `nproc` softdevice
- name: Build firmware - name: Build wasp-os binary distribution
id: make-firmware id: binary-distribution
run: | run: |
export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin
make -j BOARD=${{ matrix.board }} all make -j `nproc` VERSION=${{ github.sha }} dist
mv ../wasp-os-${{ github.sha }}.tar.gz .
- name: Create archive - name: Upload binaries
id: create-archive id: upload-binaries
run: |
tar -cJf wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz \
build-${{ matrix.board }} \
COPYING \
COPYING.LGPL \
README.rst \
TODO.rst \
tools \
docs
- name: Upload build
id: upload-firmware
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz name: wasp-os-${{ github.sha }}
path: wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz path: |
build-*
wasp-os-${{ github.sha }}.tar.gz