name: Pull request checks on: pull_request: push: branches: - main workflow_dispatch: permissions: contents: read concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: static: name: Repository and host checks runs-on: ubuntu-latest steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - name: Install verified actionlint run: | actionlint_bin="$(./tools/install-actionlint.sh "$RUNNER_TEMP/actionlint")" echo "ACTIONLINT_BIN=${actionlint_bin}" >> "$GITHUB_ENV" - name: Validate repository and run host tests run: ./tools/validate.sh --static firmware: name: ESP-IDF 5.5.3 firmware runs-on: ubuntu-latest steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - name: Restore ccache uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5 with: path: .ccache key: ci-ccache-${{ github.sha }} restore-keys: | ci-ccache- - name: Build and verify merged firmware uses: espressif/esp-idf-ci-action@9d38657f3d789ca759b2b37aaf5ceffbc42c4f0d # v1 with: esp_idf_version: v5.5.3 target: esp32c3 extra_docker_args: >- -e CCACHE_DIR=/app/${{ github.repository }}/.ccache -e IDF_CCACHE_ENABLE=1 command: ./tools/validate.sh --firmware - name: Upload verified firmware uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: firmware-${{ github.run_id }} path: build/FoloToy-AI-Passport-full.bin if-no-files-found: error retention-days: 7