git: d43cd27f0694 - stable/11 - Add Cirrus CI config file to support CI builds
Ed Maste
emaste at FreeBSD.org
Tue Aug 31 13:42:55 UTC 2021
The branch stable/11 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=d43cd27f0694cbde3b5787c0f101a0fd07e53125
commit d43cd27f0694cbde3b5787c0f101a0fd07e53125
Author: Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2020-03-19 18:17:43 +0000
Commit: Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-08-31 00:48:13 +0000
Add Cirrus CI config file to support CI builds
Also followup commits:
r346121: Cirrus-CI: pass OVMF env var to test script for upcoming changes
r350302: cirrus.yml: use OVMF.fd from uefi-edk2-qemu-x86_64 package
r350449: cirrus.yml: stop fetching OVMF.fd now that we're using the pkg
r356867: Cirrus-CI: bump VM image to FreeBSD 12.1
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 9ce187bf83c0593d9639662417923f0e054c19d3)
Cirrus-CI: use FreeBSD 12.2 image
Direct commit to stable/12 as main has other changes here, using the
llvm package to avoid building the toolchain.
(cherry picked from commit 046f91f21ac619f7307a8e853f863ded4df7f322)
Cirrus-CI: avoid boot smoke test on stable/12
The boot smoke test boots from a FAT filesystem (created in-memory
by QEMU), but this does not work on stable/12:
mountroot: waiting for device /dev/ada0s1...
Mounting from msdosfs:/dev/ada0s1 failed with error 19.
For now on stable/12 use Cirrus-CI as only a build test.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 05b9673637feedb3ef0cf51fd9b7e914b08f7554)
Cirrus-CI: Add descriptive task name
Previously it appeared only as "main" in places like GitHub's list
of checks run as part of a pull request.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 903526542ac2309c08c769e517ea173a9f67cdb2)
"boot smoke test" dropped from task name for the MFC, because Cirrus
runs a build test only on stable/12 (see 05b9673637fe for details).
(cherry picked from commit 20c918af7a3de84a6fc7d840a712fc4aa4dcdb69)
---
.cirrus.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644
index 000000000000..356125f7d7b1
--- /dev/null
+++ b/.cirrus.yml
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+freebsd_instance:
+ image: freebsd-12-2-release-amd64
+ cpu: 8
+ memory: 24G
+
+env:
+ CIRRUS_CLONE_DEPTH: 1
+
+task:
+ name: World and kernel amd64 build test
+ timeout_in: 90m
+ install_script:
+ - pkg install -y qemu-devel uefi-edk2-qemu-x86_64
+ script:
+ - make -j$(sysctl -n hw.ncpu) WITHOUT_TOOLCHAIN=yes buildworld buildkernel
+# FAT root fs fails on stable/12:
+# Mounting from msdosfs:/dev/ada0s1 failed with error 19.
+#
+# test_script:
+# - sh tools/boot/ci-qemu-test.sh
More information about the dev-commits-src-branches
mailing list