name: Build SDK
on:
  push:
    branches:
      - main
  pull_request:
    types: [ opened, synchronize, reopened ]

permissions: read-all

jobs:
  Build:
    strategy:
      matrix:
        board: [
          { id: cyd-2432s028r, arch: esp32 },
          { id: lilygo-tdeck, arch: esp32s3 },
        ]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: "Build"
        uses: ./.github/actions/build-sdk
        with:
          board_id: ${{ matrix.board.id }}
          arch: ${{ matrix.board.arch }}