diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-21 17:02:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 17:02:06 -0400 |
commit | 79816798c2b98e42f0a5590c250c0fb3b2bf2521 (patch) | |
tree | ca48a18b2a8c52b3a5b3265857638729b2dd45cc /contrib | |
parent | cd7b48198c38c5028540e85dc72dd3406f4318f0 (diff) | |
parent | 319fcf52fc5eaa3a83c4a152405910a5b516f89a (diff) | |
download | podman-79816798c2b98e42f0a5590c250c0fb3b2bf2521.tar.gz podman-79816798c2b98e42f0a5590c250c0fb3b2bf2521.tar.bz2 podman-79816798c2b98e42f0a5590c250c0fb3b2bf2521.zip |
Merge pull request #11579 from cevich/add_cross_release
Cross-build linux releases w/ arch in filename
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/cirrus/runner.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh index c1972b90f..128398c38 100755 --- a/contrib/cirrus/runner.sh +++ b/contrib/cirrus/runner.sh @@ -205,10 +205,12 @@ function _run_build() { # Ensure always start from clean-slate with all vendor modules downloaded make clean make vendor - make podman-release.tar.gz # includes podman, podman-remote, and docs + make podman-release # includes podman, podman-remote, and docs } function _run_altbuild() { + local -a arches + local arch req_env_vars ALT_NAME # Defined in .cirrus.yml # shellcheck disable=SC2154 @@ -221,7 +223,7 @@ function _run_altbuild() { make build-all-new-commits GIT_BASE_BRANCH=origin/$DEST_BRANCH ;; *Windows*) - make podman-remote-release-windows.zip + make podman-remote-release-windows_amd64.zip make podman.msi ;; *Without*) @@ -232,7 +234,21 @@ function _run_altbuild() { rpmbuild --rebuild ./podman-*.src.rpm ;; Alt*Cross) - make local-cross + arches=(\ + amd64 + ppc64le + arm + arm64 + 386 + s390x + mips + mipsle + mips64 + mips64le) + for arch in "${arches[@]}"; do + msg "Building release archive for $arch" + make podman-release-${arch}.tar.gz GOARCH=$arch + done ;; *Static*) req_env_vars CTR_FQIN |