github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/contrib/cirrus/build_release.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 source $(dirname $0)/lib.sh 6 7 req_env_var TEST_REMOTE_CLIENT OS_RELEASE_ID GOSRC 8 9 cd $GOSRC 10 11 if [[ "$TEST_REMOTE_CLIENT" == "true" ]] && [[ -z "$CROSS_PLATFORM" ]] 12 then 13 CROSS_PLATFORM=linux 14 fi 15 16 if [[ -n "$CROSS_PLATFORM" ]] 17 then 18 # Will fail if $CROSS_PLATFORM is unsupported cross-compile $GOOS value 19 make podman-remote-${CROSS_PLATFORM}-release 20 21 echo "Compiling podman-remote release archive for ${CROSS_PLATFORM}" 22 if [[ "$CROSS_PLATFORM" == "windows" ]] 23 then 24 # TODO: Remove next line, part of VM images next time they're built. 25 dnf install -y libmsi1 msitools pandoc 26 make podman.msi 27 fi 28 else 29 echo "Compiling release archive for $OS_RELEASE_ID" 30 make podman-release 31 fi 32 33 echo "Preserving build details for later use." 34 mv -v release.txt actual_release.txt # Another 'make' during testing could overwrite it