Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
name: Build Stack-chan Firmware
on:
push:
paths:
- 'firmware/**'
- '.github/actions/setup/action.yml'
- '.github/workflows/build.yml'
- 'lefthook.yml'
pull_request:
paths:
- 'firmware/**'
- '.github/actions/setup/action.yml'
- '.github/workflows/build.yml'
- 'lefthook.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Check format
working-directory: ./firmware
run: npm run format
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Lint firmware
working-directory: ./firmware
run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Run firmware tests
working-directory: ./firmware
run: npm run test
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- esp32/m5stack
- esp32/m5stack_cores3
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Build firmware
working-directory: ./firmware
run: source "$HOME/.local/share/xs-dev-export.sh" && npm run build --target=${{ matrix.target }}
2765701b7This file is pinned to the selected release. Download the original to open it in your design tool.