Sanitize outgoing reports #127
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-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@v3 | |
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 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 | |
working-directory: ./firmware | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: firmware/artifacts/* |