Print to log if expression invalid #133
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-rp2040 | |
on: | |
push: | |
paths: | |
- 'firmware/**' | |
workflow_call: | |
defaults: | |
run: | |
shell: bash --noprofile --norc -x -e -o pipefail {0} | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install compiler, libraries and tools | |
run: | | |
sudo apt update | |
sudo apt install -y --no-install-recommends gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib srecord | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make | |
cd .. | |
mkdir build-boards | |
cd build-boards | |
PICO_BOARD=remapper cmake .. | |
make remapper_dual_a | |
cd .. | |
mkdir build-board_v7 | |
cd build-board_v7 | |
PICO_BOARD=remapper_v7 cmake .. | |
make remapper_dual_a | |
cd .. | |
mkdir build-board_v8 | |
cd build-board_v8 | |
PICO_BOARD=remapper_v8 cmake .. | |
make remapper | |
cd .. | |
mkdir build-feather | |
cd build-feather | |
PICO_BOARD=feather_host cmake .. | |
make remapper | |
cd .. | |
mkdir build-waveshare_rp2040_pizero | |
cd build-waveshare_rp2040_pizero | |
PICO_BOARD=waveshare_rp2040_pizero cmake .. | |
make remapper | |
cd .. | |
mkdir build-pico2 | |
cd build-pico2 | |
PICO_BOARD=pico2 cmake .. | |
make remapper remapper_dual_a remapper_dual_b | |
cd .. | |
mkdir artifacts | |
mv build/*.uf2 artifacts | |
mv build-boards/remapper_dual_a.uf2 artifacts/remapper_board.uf2 | |
mv build-board_v7/remapper_dual_a.uf2 artifacts/remapper_board_v7.uf2 | |
mv build-board_v8/remapper.uf2 artifacts/remapper_board_v8.uf2 | |
mv build-feather/remapper.uf2 artifacts/remapper_feather.uf2 | |
mv build-waveshare_rp2040_pizero/remapper.uf2 artifacts/remapper_waveshare_rp2040_pizero.uf2 | |
mv build-pico2/remapper.uf2 artifacts/remapper_pico2.uf2 | |
mv build-pico2/remapper_dual_a.uf2 artifacts/remapper_pico2_dual_a.uf2 | |
mv build-pico2/remapper_dual_b.uf2 artifacts/remapper_pico2_dual_b.uf2 | |
working-directory: ./firmware | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: firmware/artifacts/* |