diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91b99edca..b89772b32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -589,9 +589,15 @@ jobs: # VVPP archives - name: Create VVPP archives run: | - # Compress to artifact.001.vvppp,artifact.002.vvppp, ... - (cd "${{ matrix.target }}" && 7z -r a "../compressed.zip") - $split -b 1900M --numeric-suffixes=1 -a 3 --additional-suffix .vvppp ./compressed.zip ./${{ steps.vars.outputs.package_name }}. + # Compress to compressed.zip.001, compressed.zip.002, ... + # NOTE: 1000th archive will be "compressed.zip.1000" after "compressed.zip.999". This is unconsidered as an extreme case. + (cd "${{ matrix.target }}" && 7z -r -v1900M a "../compressed.zip") + + # Rename to artifact.001.vvppp, artifact.002.vvppp + for FILE in $(ls "compressed.zip.*"); do + NUMBER=${FILE##*.} # 001 + mv "${FILE}" "${{ steps.vars.outputs.package_name }}.${NUMBER}.vvppp" + done # Rename to artifact.vvpp if there are only artifact.001.vvppp if [ "$(ls ${{ steps.vars.outputs.package_name }}.*.vvppp | wc -l)" == 1 ]; then