]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
ci: add a build job for freebsd13 with netlink support
authorYann Dirson <yann.dirson@vates.fr>
Thu, 11 Jan 2024 11:18:21 +0000 (12:18 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Thu, 11 Jan 2024 11:41:11 +0000 (12:41 +0100)
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 <yann.dirson@vates.fr>
.gitlab-ci.yml
CHANGELOG.md
devscripts/cargo-freebsd-netlink.toml [new file with mode: 0644]

index a13827060562844cbd9599731c52dafa9635395a..12d464d16d0774850c62d3e3539167117debb08d 100644 (file)
@@ -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:
index b944c537d2b17c0002d7956b500f46f466f699da..083b88dc8aee1214b892b85327094a7e8aa94d61 100644 (file)
@@ -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 (file)
index 0000000..f34f4bc
--- /dev/null
@@ -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" }