Merge branch 'main' into firmware-rs #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build firmware" | |
on: | |
push: | |
paths: | |
- "firmware/**" | |
- ".github/workflows/build-firmware.yaml" | |
jobs: | |
build-firmware: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Get dependencies" | |
# TOFIX: This doesn't appear to work due to issues with 'nosys.specs' | |
# uses: awalsh128/cache-apt-pkgs-action@v1 | |
# with: | |
# version: 1 | |
# execute_install_scripts: true | |
# packages: cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib | |
run: sudo apt-get -y install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib | |
# TOFIX: cache the submodules? | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "CMake setup" | |
run: cd firmware/ && mkdir build/ && cd build/ && cmake .. | |
- name: "Build with make" | |
run: cd firmware/build/ && make -j2 | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jb-firmware | |
path: firmware/build/jukebox_firmware.uf2 | |
retention-days: 90 |