From 4e869fdb6795b5609e79aea407838f5a2b6e0330 Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Fri, 6 Nov 2026 10:01:50 -0600 Subject: [PATCH] ci: packaged programmer at @v1, built with the esptool version this build used The packaging action follows its @v1 tag now (tracks releases without a change here each time) and packages the esptool version the build used (esp-cpp/esp-packaged-programmer-action#7): the flash arguments ESP-IDF generates follow the esptool it builds with, so the programmer must carry the same one. The build step records it into build/esptool_version.txt and the file travels in the build artifact, where the action reads it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01DFjjnq3XCTRAXENSxsCxJU --- .github/workflows/package_main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package_main.yml b/.github/workflows/package_main.yml index 25ff095..7e4fb20 100644 --- a/.github/workflows/package_main.yml +++ b/.github/workflows/package_main.yml @@ -39,6 +39,9 @@ jobs: esp_idf_version: ${{ env.IDF_VERSION }} path: '.' target: ${{ env.IDF_TARGET }} + # the second command records the esptool version this build used, so + # the packaging job packages the same one (its flash arguments follow it) + command: 'idf.py build && python -m esptool version | tail -1 > build/esptool_version.txt' - name: Upload Build Outputs uses: actions/upload-artifact@v7 @@ -55,6 +58,7 @@ jobs: build/partition_table/partition-table.bin build/flasher_args.json build/flash_args + build/esptool_version.txt - name: Attach files to release uses: softprops/action-gh-release@v3 @@ -90,7 +94,7 @@ jobs: os: [windows-latest, macos-latest, ubuntu-latest] runs-on: ${{ matrix.os }} steps: - - uses: esp-cpp/esp-packaged-programmer-action@v1.0.5 + - uses: esp-cpp/esp-packaged-programmer-action@v1 with: zipfile-id: ${{ needs.build.outputs.zipfile-id }} # TODO: update programmer name to be what you want to call it