mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Cirrus: Add cross-compile test for alternative arches
Followup to https://github.com/containers/podman/pull/8907 that simply ensures cross-compiling podman completes. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -311,6 +311,8 @@ alt_build_task:
|
|||||||
ALT_NAME: 'Build Without CGO'
|
ALT_NAME: 'Build Without CGO'
|
||||||
- env:
|
- env:
|
||||||
ALT_NAME: 'Test build RPM'
|
ALT_NAME: 'Test build RPM'
|
||||||
|
- env:
|
||||||
|
ALT_NAME: 'Alt Arch. Cross'
|
||||||
setup_script: *setup
|
setup_script: *setup
|
||||||
main_script: *main
|
main_script: *main
|
||||||
always: *binary_artifacts
|
always: *binary_artifacts
|
||||||
|
2
Makefile
2
Makefile
@ -225,7 +225,7 @@ bin/podman.cross.%: .gopathok
|
|||||||
TARGET="$*"; \
|
TARGET="$*"; \
|
||||||
GOOS="$${TARGET%%.*}" \
|
GOOS="$${TARGET%%.*}" \
|
||||||
GOARCH="$${TARGET##*.}" \
|
GOARCH="$${TARGET##*.}" \
|
||||||
$(GO) build $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags '$(BUILDTAGS_CROSS)' -o "$@" ./cmd/podman
|
CGO_ENABLED=0 $(GO) build $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags '$(BUILDTAGS_CROSS)' -o "$@" ./cmd/podman
|
||||||
|
|
||||||
# Update nix/nixpkgs.json its latest stable commit
|
# Update nix/nixpkgs.json its latest stable commit
|
||||||
.PHONY: nixpkgs
|
.PHONY: nixpkgs
|
||||||
|
@ -178,6 +178,9 @@ function _run_altbuild() {
|
|||||||
make -f ./.copr/Makefile
|
make -f ./.copr/Makefile
|
||||||
rpmbuild --rebuild ./podman-*.src.rpm
|
rpmbuild --rebuild ./podman-*.src.rpm
|
||||||
;;
|
;;
|
||||||
|
Alt*Cross)
|
||||||
|
make local-cross
|
||||||
|
;;
|
||||||
*Static*)
|
*Static*)
|
||||||
req_env_vars CTR_FQIN
|
req_env_vars CTR_FQIN
|
||||||
[[ "$UID" -eq 0 ]] || \
|
[[ "$UID" -eq 0 ]] || \
|
||||||
|
Reference in New Issue
Block a user