diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-06 19:49:24 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel.thompson@linaro.org> | 2020-11-06 21:38:58 (GMT) |
| commit | 20b626f5c240efbd0ebb24004cf0c00bf8dc65a7 (patch) | |
| tree | b9fa0c6c5bdddb024e3bd6b18682fbb4acf1bac5 /.github | |
| parent | a851015cea043aab6d6575461e9ae7c7d6fa2254 (diff) | |
actions: Replace the matrix buils with the makefile dist rule
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/main.yml | 63 |
1 files changed, 23 insertions, 40 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a1b962..5177329 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: CI for wasp-os +name: wasp-os binary distribution on: push: @@ -8,10 +8,6 @@ on: jobs: build: - strategy: - matrix: - board: [pinetime, p8] - runs-on: ubuntu-latest steps: @@ -19,15 +15,6 @@ jobs: id: checkout-files 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 id: cache-toolchain uses: actions/cache@v2 @@ -47,40 +34,36 @@ jobs: release: 9-2019-q4 directory: ${{ runner.temp }}/arm-none-eabi - - name: Make submodules - id: make-submodules + - name: Install packages + id: install-packages + run: | + sudo apt-get update + sudo apt-get install -y python3-sphinx python3-recommonmark + + - name: Update submodules + id: update-submodules run: | export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin - make -j BOARD=${{ matrix.board }} submodules + make -j `nproc` submodules - - name: Make softdevice - id: make-softdevice + - name: Download softdevice + id: download-softdevice run: | export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin - make -j BOARD=${{ matrix.board }} softdevice + make -j `nproc` softdevice - - name: Build firmware - id: make-firmware + - name: Build wasp-os binary distribution + id: binary-distribution run: | export PATH=$PATH:${{ runner.temp }}/arm-none-eabi/bin - make -j BOARD=${{ matrix.board }} all - - - name: Create archive - id: create-archive - run: | - tar -cJf wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz \ - build-${{ matrix.board }} \ - COPYING \ - COPYING.LGPL \ - README.rst \ - TODO.rst \ - tools \ - docs + make -j `nproc` VERSION=${{ github.sha }} dist + mv ../wasp-os-${{ github.sha }}.tar.gz . - - name: Upload build - id: upload-firmware + - name: Upload binaries + id: upload-binaries uses: actions/upload-artifact@v2 with: - name: wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz - path: wasp-os-${{ github.sha }}-${{ matrix.board }}.tar.gz - + name: wasp-os-${{ github.sha }} + path: | + build-* + wasp-os-${{ github.sha }}.tar.gz |
