Skip to content

fix serial not recieving disconnect commands correctly, add more expl… #11

fix serial not recieving disconnect commands correctly, add more expl…

fix serial not recieving disconnect commands correctly, add more expl… #11

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