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
- 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"
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: