From: Yann Dirson Date: Thu, 11 Jan 2024 11:18:21 +0000 (+0100) Subject: ci: add a build job for freebsd13 with netlink support X-Git-Tag: 0.4.0~8^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8f7875b64612230a461d2182b205186538d91867;p=xen-guest-agent.git ci: add a build job for freebsd13 with netlink support Still waiting on the libc PR to land, so we need unofficial branches for now. We don't make it a release job because of the unofficial status of those branches, but we still provide the executable as an artifact for convenience. Signed-off-by: Yann Dirson --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a138270..12d464d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -208,6 +208,23 @@ build-freebsd13-x86_64: variables: CARGO_FLAGS: "-v" +build-freebsd13-netlink-x86_64: + variables: + FEATURES: "" + extends: + - .cross-freebsd13-x86_64-build-template + - .not-scheduled + variables: + CARGO_FLAGS: "-v" + before_script: + - !reference [.cross-freebsd13-x86_64-build-template,before_script] + - mkdir .cargo + - cp devscripts/cargo-freebsd-netlink.toml .cargo/config.toml + - cargo update -p libc -p rtnetlink + artifacts: + paths: + - target/x86_64-unknown-freebsd/debug/xen-guest-agent + build-release-freebsd13-x86_64: stage: release-build extends: diff --git a/CHANGELOG.md b/CHANGELOG.md index b944c53..083b88d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/) * CI pipelines stopped producing binaries for EOL'd FreeBSD 12.4, switched to 13.2 +* CI now produces an (unofficial) binary for FreeBSD with Netlink + support ## 0.3.0 - 2023-12-15 diff --git a/devscripts/cargo-freebsd-netlink.toml b/devscripts/cargo-freebsd-netlink.toml new file mode 100644 index 0000000..f34f4bc --- /dev/null +++ b/devscripts/cargo-freebsd-netlink.toml @@ -0,0 +1,3 @@ +[patch.crates-io] +libc = { git = "https://github.com/xcp-ng/rust-libc.git", branch = "freebsd-netlink" } +rtnetlink = { git = "https://github.com/xcp-ng/rust-rtnetlink.git", branch = "freebsd" }