name: Build on: push: pull_request: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repo uses: actions/checkout@v4 with: submodules: 'recursive' - name: esp-idf build uses: ./.gitea/actions/esp-idf-ci-action with: esp_idf_version: v6.0.2 target: esp32c6 - name: Package firmware if: startsWith(github.ref, 'refs/tags/') run: | set -euo pipefail NAME="firmware-${GITHUB_REF_NAME}" mkdir -p "release/${NAME}/build/bootloader" "release/${NAME}/build/partition_table" # Keep the build/ layout so "@flash_args" works after unzipping cp build/bootloader/bootloader.bin "release/${NAME}/build/bootloader/" cp build/partition_table/partition-table.bin "release/${NAME}/build/partition_table/" cp "build/${PROJECT_BIN}" "release/${NAME}/build/" cp build/flash_args "release/${NAME}/build/" (cd release && zip -qr "${NAME}.zip" "${NAME}") # Standalone copies cp build/bootloader/bootloader.bin release/ cp build/partition_table/partition-table.bin release/ cp "build/${PROJECT_BIN}" release/ cat > release/notes.md </dev/null done