vs4vijay / iot-playground

IoT Playground for ESP32, Arduino, M5Stack, and other firmware platforms
MIT License
5 stars 0 forks source link

Sweep: Modify CI Pipeline to upload the firmware binary #8

Closed vs4vijay closed 8 months ago

vs4vijay commented 8 months ago

Details

Modify the Github Actions CI Pipeline "demo_compile_esp_idf.yml" file to compile the project "demo_esp_idf" based on esp-idf. It should include idf build instructions as well as creating a final firmware binary using esptool merge_bin. Make sure you upload to artifacts

Checklist - [X] Modify `.github/workflows/demo_compile_esp_idf.yml` βœ“ https://github.com/vs4vijay/iot-playground/commit/e05afaedd27d4456ada6712cd0d213479657591d [Edit](https://github.com/vs4vijay/iot-playground/edit/sweep/modify_ci_pipeline_to_upload_the_firmwar/.github/workflows/demo_compile_esp_idf.yml#L33-L48) - [X] Running GitHub Actions for `.github/workflows/demo_compile_esp_idf.yml` βœ“ [Edit](https://github.com/vs4vijay/iot-playground/edit/sweep/modify_ci_pipeline_to_upload_the_firmwar/.github/workflows/demo_compile_esp_idf.yml#L33-L48)
sweep-ai[bot] commented 8 months ago

πŸš€ Here's the PR! #9

See Sweep's progress at the progress dashboard!
⚑ Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day. (tracking ID: e380cdac4f)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

[!TIP] I'll email you at vs4vijay@gmail.com when I complete this pull request!


Actions (click)

GitHub Actionsβœ“

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for 011247b
Checking .github/workflows/demo_compile_esp_idf.yml for syntax errors... βœ… .github/workflows/demo_compile_esp_idf.yml has no syntax errors! 1/1 βœ“
Checking .github/workflows/demo_compile_esp_idf.yml for syntax errors...
βœ… .github/workflows/demo_compile_esp_idf.yml has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: πŸ”Ž Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/vs4vijay/iot-playground/blob/011247bb55a7d19bafe579b933ce00f26ef0a0a4/demo_esp_idf/CMakeLists.txt#L1-L2 https://github.com/vs4vijay/iot-playground/blob/011247bb55a7d19bafe579b933ce00f26ef0a0a4/demo_esp_idf/main/CMakeLists.txt#L1-L1 https://github.com/vs4vijay/iot-playground/blob/011247bb55a7d19bafe579b933ce00f26ef0a0a4/.github/workflows/demo_compile_esp_idf.yml#L1-L49

Step 2: ⌨️ Coding

--- 
+++ 
@@ -28,6 +28,11 @@

       - name: Build using esp-idf
         uses: espressif/esp-idf-ci-action@v1
+
+      - name: Merge Firmware Binary
+        run: |
+          . $HOME/esp/esp-idf/export.sh
+          esptool.py merge_bin -o final_firmware.bin --fill-flash-size 4MB 
         with:
           esp_idf_version: v4.4.6
           target: esp32s3
@@ -44,7 +49,7 @@
       - name: Upload firmware
         uses: actions/upload-artifact@v4
         with:
-          path: *.bin
+          path: final_firmware.bin
           name: demo.idf
           compression-level: 0
           if-no-files-found: error

Ran GitHub Actions for e05afaedd27d4456ada6712cd0d213479657591d:


Step 3: πŸ” Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/modify_ci_pipeline_to_upload_the_firmwar.


πŸŽ‰ Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

πŸ’‘ To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.

This is an automated message generated by Sweep AI.