Skip to content

Build matrix variants, configurable backlight inversion, and better touchpad I2C handling #19

Build matrix variants, configurable backlight inversion, and better touchpad I2C handling

Build matrix variants, configurable backlight inversion, and better touchpad I2C handling #19

Workflow file for this run

name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Build ${{ matrix.variant }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- variant: normal
cmake_flags: ""
artifact_suffix: ""
- variant: backlight-inverted
cmake_flags: "-DBACKLIGHT_INVERT=ON"
artifact_suffix: "-backlight-inverted"
steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
- name: Setup arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
release: "10-2020-q4"
- name: Clone repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.client_payload.branch }}
- name: Get short sha1
id: short_sha1
run: echo "value=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build
run: |
mkdir build output
git submodule update --init
cd 3rdparty/pico-sdk
git submodule update --init
cd ../../build
cmake -DPICO_BOARD=bbq20kbd_breakout -DCMAKE_BUILD_TYPE=Debug ${{ matrix.cmake_flags }} ..
make
cp app/i2c_puppet.{bin,elf,uf2} ../output
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
path: output
name: i2c_puppet-bbq20kbd_breakout${{ matrix.artifact_suffix }}-${{ steps.short_sha1.outputs.value }}