Skip to content

Add coverage build

Add coverage build #69

Workflow file for this run

name: Package
on:
workflow_dispatch: # lets you run a build from the UI
push:
jobs:
package:
name: Package
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: recursive
lfs: true
- name: Install dependencies
run: |
sudo apt install gcc-arm-none-eabi ninja-build cmake
arm-none-eabi-g++ --version
- name: Build firmware
run: |
cmake --preset arm-gnu
cmake --build --preset release
- name: Make firmware archive
run: |
mkdir firmware
cp build/src/kyma/Release/kyma.bin firmware
cp build/src/hades/Release/hades.bin firmware
cp build/src/astra/Release/astra.bin firmware
- name: Upload coverage artifacts
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware
if-no-files-found: error
release:
name: Release
needs: package
if: contains(github.ref, 'tags/v')
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
lfs: true
- name: Get Artifacts
uses: actions/download-artifact@v3
- name: Show artifacts
run: ls -la
- name: Create Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
fail_on_unmatched_files: true
files: |
./LICENSE.txt
./firmware/**