Skip to content

Added CI for building and checking pre-commit #1

Added CI for building and checking pre-commit

Added CI for building and checking pre-commit #1

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt install -y gcc-arm-none-eabi
- run: PICO_SDK_FETCH_FROM_GIT=1 cmake -S . -B build
- run: cmake --build build --parallel $(nproc)
- uses: actions/[email protected]
with:
name: gs_usb_fw
path: build/*.uf2
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
- run: pip install pre-commit
- run: pre-commit run --show-diff-on-failure --color=always --all-files