Skip to content

Commit 0eeb291

Browse files
committed
Update binary compression steps to follow symlinks for actual files
By default, zip follows symbolic links and includes the actual files or directories they point to in the archive.
1 parent 93ef19b commit 0eeb291

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build_iwasm_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ jobs:
137137
- name: compress the binary on non-Windows
138138
if: inputs.runner != 'windows-latest'
139139
run: |
140-
tar czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
140+
# Follow the symlink to the actual binary file
141+
tar --dereference -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
141142
zip iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip iwasm
142143
working-directory: ${{ inputs.cwd }}/build
143144

.github/workflows/build_wamrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ jobs:
7373
- name: compress the binary on non-Windows
7474
if: inputs.runner != 'windows-latest' && inputs.release
7575
run: |
76-
tar czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
76+
# Follow the symlink to the actual binary file
77+
tar --dereference -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
7778
zip wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip wamrc
7879
working-directory: wamr-compiler/build
7980

0 commit comments

Comments
 (0)