You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix build folder tree packaging and add exclude-file-glob input (#4)
* print build directory before and after modification to ensure it is correct
* test using collect-system-data-files
* revert back to original
* fix action and how it manages the provided files. add feature to exclude files
* readme: udpate
* update to 1.0.4
Copy file name to clipboardExpand all lines: action.yml
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,21 @@ name: 'ESP Packaged Programmer'
2
2
description: 'Package esptool and the binaries into an executable'
3
3
inputs:
4
4
zipfile-id:
5
-
description: 'Artifact ID for the Zipfile to download. Zipfile should contain firmware.bin, bootloader.bin, partition-table.bin, and flasher_args.json. May optionally contain filesystem binaries and associated -flash_args files. NOTE: only one of zipfile-id or zipfile-name should be set.'
5
+
description: 'Artifact ID for the Zipfile to download. Zipfile should contain firmware.bin, bootloader.bin, partition-table.bin, and flasher_args.json. May optionally contain filesystem binaries and associated -flash_args files. NOTE: only one of zipfile-id or zipfile-name should be set. The structure of the zip should be the same as the build folder within the esp-idf build - so it should have the tree: build/, build/bootloader/, build/partition_table/'
6
6
required: false
7
7
default: ''
8
8
zipfile-name:
9
-
description: 'Name of the zipfile artifact that was packaged and uploaded. Zipfile should contain firmware.bin, bootloader.bin, partition-table.bin, and flasher_args.json. May optionally contain filesystem binaries and associated -flash_args files. NOTE: only one of zipfile-id or zipfile-name should be set.'
9
+
description: 'Name of the zipfile artifact that was packaged and uploaded. Zipfile should contain firmware.bin, bootloader.bin, partition-table.bin, and flasher_args.json. May optionally contain filesystem binaries and associated -flash_args files. NOTE: only one of zipfile-id or zipfile-name should be set. The structure of the zip should be the same as the build folder within the esp-idf build - so it should have the tree: build/, build/bootloader/, build/partition_table/'
10
10
required: false
11
11
default: ''
12
12
programmer-name:
13
13
description: 'Base name of the programmer executable. Will have version tag (e.g. v1.0.0 or commit hash if no tags) and OS suffix (e.g. windows, linux, macos) appended.'
14
14
required: false
15
15
default: 'programmer'
16
+
exclude-file-globs:
17
+
description: 'File globs to exclude from the build folder. This is a comma-separated list of filenames or globs. For example: "*.elf,*.pdb,app-flash_args". Defaults to "*.elf".'
18
+
required: false
19
+
default: '*.elf'
16
20
outputs:
17
21
artifact-name:
18
22
description: "Name of the programmer artifact that was packaged and uploaded"
@@ -76,17 +80,21 @@ runs:
76
80
artifact-ids: ${{ inputs.zipfile-id }}
77
81
path: ${{ github.action_path }}/build
78
82
79
-
- name: Move the artifacts to the build directory
83
+
- name: Remove any unneeded files from the build folder
80
84
shell: bash
85
+
if: ${{ inputs.exclude-file-globs != '' }}
81
86
working-directory: ${{ github.action_path }}
82
87
run: |
83
-
# we don't control the name of the unpacked archive (folder) that's
84
-
# within build/ so simply move everything within that subfolder into
0 commit comments