add github actions #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 JukeBox firmware." | |
on: | |
push: | |
jobs: | |
build_firmware: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get dependencies | |
run: sudo apt -y install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- run: cd firmware/ | |
- run: mkdir build/ | |
- run: cd build/ | |
- name: CMake setup | |
run: cmake .. | |
- name: Run make | |
run: make -j2 | |
- run: ls |