Skip to content

Commit

Permalink
Demonstrate the issue with an even simpler command
Browse files Browse the repository at this point in the history
  • Loading branch information
CocoDico78 committed Dec 4, 2024
1 parent fdfc1d4 commit fc0515d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/with-esptool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- run: pip install esptool

- name: Build firmware
run: python -m esptool --chip esp32 merge_bin --output output.bin 0x1000 test1.bin 0x2000 test2.bin
run: python -m esptool version
2 changes: 1 addition & 1 deletion .github/workflows/with-platformio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- run: pip install --upgrade platformio

- name: Build firmware
run: pio pkg exec --package "platformio/tool-esptoolpy" -- esptool --chip esp32 merge_bin --output output.bin 0x1000 test1.bin 0x2000 test2.bin
run: pio pkg exec --package "platformio/tool-esptoolpy" -- esptool version
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# PlatformIO `esptool` fail on `merge_bin` operation in Github Actions
# PlatformIO `tool-esptoolpy` fails in Github Actions

This repo demonstrates an issue with the invocation of `merge_bin` command using `platformio/tool-esptoolpy` as a pio tool when running in Github Actions runner. A `UserSideException: [Errno 13] Permission denied: 'esptool'` is produced. The error appears on both Windows and Ubuntu.
This repo demonstrates an issue with the invocation of `esptool` using `platformio/tool-esptoolpy` as a pio tool when running in Github Actions runner. A `UserSideException: [Errno 13] Permission denied: 'esptool'` is produced. The error appears on both Windows and Ubuntu.

Extract of the logs from the failed Github Actions run on Ubuntu (check the [Actions tab](/actions) for the full logs):

> `Run pio pkg exec --package "platformio/tool-esptoolpy" -- esptool --chip esp32 merge_bin --output output.bin 0x1000 test1.bin 0x2000 test2.bin`
> `Run pio pkg exec --package "platformio/tool-esptoolpy" -- esptool version`
>
> `Tool Manager: Installing platformio/tool-esptoolpy`
>
Expand All @@ -20,4 +20,4 @@ Extract of the logs from the failed Github Actions run on Ubuntu (check the [Act
>
> `Error: Process completed with exit code 1.`
Calling the same command `merge_bin` through `python -m esptool` works.
Calling the same command `version` through `python -m esptool` works.

0 comments on commit fc0515d

Please sign in to comment.