mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-07 13:49:18 +00:00
Update binary compression steps to follow symlinks for actual files (#4321)
By default, zip follows symbolic links and includes the actual files or directories they point to in the archive.
This commit is contained in:
parent
602e86adc3
commit
48a97736b3
3
.github/workflows/build_iwasm_release.yml
vendored
3
.github/workflows/build_iwasm_release.yml
vendored
|
@ -137,7 +137,8 @@ jobs:
|
||||||
- name: compress the binary on non-Windows
|
- name: compress the binary on non-Windows
|
||||||
if: inputs.runner != 'windows-latest'
|
if: inputs.runner != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
tar czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
|
# Follow the symlink to the actual binary file
|
||||||
|
tar --dereference -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
|
||||||
zip iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip iwasm
|
zip iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip iwasm
|
||||||
working-directory: ${{ inputs.cwd }}/build
|
working-directory: ${{ inputs.cwd }}/build
|
||||||
|
|
||||||
|
|
3
.github/workflows/build_wamrc.yml
vendored
3
.github/workflows/build_wamrc.yml
vendored
|
@ -73,7 +73,8 @@ jobs:
|
||||||
- name: compress the binary on non-Windows
|
- name: compress the binary on non-Windows
|
||||||
if: inputs.runner != 'windows-latest' && inputs.release
|
if: inputs.runner != 'windows-latest' && inputs.release
|
||||||
run: |
|
run: |
|
||||||
tar czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
|
# Follow the symlink to the actual binary file
|
||||||
|
tar --dereference -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
|
||||||
zip wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip wamrc
|
zip wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip wamrc
|
||||||
working-directory: wamr-compiler/build
|
working-directory: wamr-compiler/build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user