Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ task:
freebsd_instance:
cpu: 1
matrix:
- image_family: freebsd-15-0-amd64-zfs
- image_family: freebsd-14-3
- image_name: freebsd-15-1-release-amd64-ufs
- image_name: freebsd-14-5-release-amd64-ufs
install_script: pkg install -y bash git autoconf automake libtool groff pkgconf
kernel_src_script: |
uname -r
if [[ $(uname -r) == "14.3-RELEASE" ]]; then
git clone --branch releng/14.3 https://git.FreeBSD.org/src.git /usr/src
if [ ! -f /usr/src/sys/kern/kern_lockf.c ]; then
rm -rf /usr/src
rel=$(uname -r | sed 's/-p[0-9]*$//; s/-RELEASE$//')
git clone --branch "releng/${rel}" https://git.FreeBSD.org/src.git /usr/src
fi;
build_script:
- ./Configure -n freebsd
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
strategy:
fail-fast: false
matrix:
release: ["15.1", "14.3"]
release: ["15.1", "14.5"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand All @@ -85,7 +85,15 @@ jobs:
# unless the sources are there. Unpack just usr/src/sys out of the
# release source set; that is ~15s and about 580MB on disk.
rel=$(uname -r | sed 's/-p[0-9]*$//')
fetch -o /tmp/src.txz "https://download.freebsd.org/releases/$(uname -m)/${rel}/src.txz"
if ! fetch -o /tmp/src.txz "https://download.freebsd.org/releases/$(uname -m)/${rel}/src.txz"; then
# FreeBSD removes release artifacts from download.freebsd.org
# once a release reaches EOL, but the old-releases archive keeps
# them. Fall back there so a release removed from the main
# mirror can still provide its sources.
echo "warning: source set not on download.freebsd.org, trying archive.freebsd.org"
rm -f /tmp/src.txz
fetch -o /tmp/src.txz "https://archive.freebsd.org/old-releases/$(uname -m)/${rel}/src.txz"
fi
tar -xf /tmp/src.txz -C / usr/src/sys

# autotools build, out of tree so the source tree stays pristine for
Expand Down
Loading