update paths, update names #1
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" | |
uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
version: 1 | |
execute_install_scripts: true | |
packages: libudev-dev cmake openscad gcc-mingw-w64 gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib | |
- 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 |