@@ -114,7 +114,7 @@ jobs:
114114 name : Build Linux
115115 needs :
116116 - setup
117- runs-on : ubuntu-20.04
117+ runs-on : ubuntu-latest
118118
119119 env :
120120 VERSION_BUILD : ${{ needs.setup.outputs.version-build }}
@@ -311,7 +311,7 @@ jobs:
311311 cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
312312 cp $root/out/cf-cli_linux_i686 cf/usr/bin/cf${VERSION_MAJOR}
313313 ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
314- fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb
314+ fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb
315315 mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb $root/packaged-deb
316316 rm -rf cf
317317 popd
@@ -336,7 +336,7 @@ jobs:
336336 cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
337337 cp $root/out/cf-cli_linux_x86-64 cf/usr/bin/cf${VERSION_MAJOR}
338338 ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
339- fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb
339+ fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb
340340 mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb $root/packaged-deb
341341 popd
342342 )
@@ -360,7 +360,7 @@ jobs:
360360 cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
361361 cp $root/out/cf-cli_linux_arm64 cf/usr/bin/cf${VERSION_MAJOR}
362362 ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
363- fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb
363+ fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb
364364 mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb $root/packaged-deb
365365 popd
366366 )
@@ -910,20 +910,29 @@ jobs:
910910 needs :
911911 - setup
912912 - build-linux
913- runs-on : ubuntu-20.04
914- container :
915- image : ubuntu:20.04
913+ runs-on : ubuntu-latest
916914 steps :
917915
918916 - name : Download Signed Linux Packages
919917 uses : actions/download-artifact@v4
920918 with :
921919 name : cf-cli-linux-deb-packages
922920
923- - name : Display structure of downloaded files
921+ - name : Display structure of downloaded files and test compression
924922 run : |
925923 ls -R
924+
925+ for i in debian:11 debian:12 ubuntu:20.04 ubuntu:22.04 ubuntu; do docker run \
926+ --interactive \
927+ --rm \
928+ -v .:/workspace \
929+ ${i:?} <<EOC
930+ printf "${i:?} -> "
931+ grep PRETTY_NAME /etc/os-release | cut -d= -f2-
932+ cd workspace
926933 ls *.deb | xargs -n1 dpkg --info
934+ EOC
935+ done
927936
928937 test-macos :
929938 name : Test macOS Artifacts
@@ -1074,4 +1083,4 @@ jobs:
10741083
10751084 git push
10761085 fi
1077- popd
1086+ popd
0 commit comments