From: Yann Dirson Date: Mon, 20 Nov 2023 11:13:18 +0000 (+0100) Subject: ci: cross-build Windows binary X-Git-Tag: 0.4.0~19^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5fe13f47ee737599654631b4638dd29c1245ba4b;p=xen-guest-agent.git ci: cross-build Windows binary Mostly a PoC, since we're missing crucial bits: - Xenstore works differently on WIndows, and we don't have a crate supporting it yet - pnet will not build with mingw, needs msvc, and it seems there are things to be done before we can use that --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e40137e..a151f53 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,6 +56,11 @@ variables: - PKG=$(./devscripts/freebsd-fetch-package.sh xen-tools) - tar -C $CROSS_SYSROOT/ --xform s,^/usr/local/,/usr/, -xf $PKG +.cross-windows-build-template: + extends: + - .cross-build-template + variables: + CARGO_BUILD_TARGET: "x86_64-pc-windows-gnu" .scheduled: rules: - if: $CI_PIPELINE_SOURCE == "schedule" @@ -191,6 +196,17 @@ build-release-freebsd12-x86_64: paths: - target/x86_64-unknown-freebsd/release/xen-guest-agent +build-windows-x86_64: + extends: + - .cross-windows-build-template + - .not-scheduled + variables: + CARGO_FLAGS: "-v" + FEATURES: "--no-default-features" + artifacts: + paths: + - target/x86_64-pc-windows-gnu/debug/xen-guest-agent.exe + ## continuous checking against most recent dependencies build-latest-linux: