From 6efaa1cb5255cae26e6369a9cc4f44d0da910efb Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 2 Feb 2024 14:55:43 +1300 Subject: [PATCH] [ci] Add job running of DragonflyBSD (cherry picked from commit 9669ea12464273306a869f1cd8ba529e7d16c8a0) --- .github/workflows/ci.yml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 598a8f8d4..f81ab2268 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1739,6 +1739,65 @@ jobs: make -j2 -C xapian-applications/omega check V=0 make -j2 -C xapian-letor check V=0 + dragonfly: + runs-on: 'ubuntu-22.04' + needs: makedist + steps: + - name: Install CCache + uses: hendrikmuhs/ccache-action@v1 + with: + key: ${{ github.job }} + - name: Fetch distribution + uses: actions/download-artifact@v4 + - name: Unpack distribution + run: | + mv artifact/* . + rmdir artifact + # Do actual unpacking in the VM, mostly to help reduce the size of the + # rsync output in the logs. + - uses: vmactions/dragonflybsd-vm@v1 + # Limit wasted resources if the VM action gets into an infinite loop. + timeout-minutes: 60 + with: + usesh: true + prepare: | + set -e + pkg install -y bash ccache perl5 pcre2 + ccache --set-config=cache_dir='/Users/runner/work/xapian/xapian/.ccache' + ccache --set-config=max_size='500M' + ccache --set-config=compression=true + run: | + set -e + export CC='ccache cc' + export CXX='ccache c++' + cd xapian-core + tar --strip-components=1 -xf xapian-core-*.tar.xz + ./configure --enable-werror + export XAPIAN_CONFIG=$PWD/xapian-config + cd .. + cd xapian-applications/omega + tar --strip-components=1 -xf xapian-omega-*.tar.xz + ./configure --enable-werror + cd ../.. + # cd xapian-bindings + # tar --strip-components=1 -xf xapian-bindings-*.tar.xz + # cd .. + cd xapian-letor + tar --strip-components=1 -xf xapian-letor-*.tar.xz + ./configure --enable-werror + cd .. + # Everything gets run in one script so use V=0 to reduce the size of + # the log, but re-run without V=0 on failure to show the compiler + # command line. + make -j2 -C xapian-core V=0 || make -C xapian-core + make -j2 -C xapian-applications/omega V=0 || make -C xapian-core + make -j2 -C xapian-letor V=0 || make -C xapian-letor + export AUTOMATED_TESTING=1 + export VERBOSE=1 + make -j2 -C xapian-core check V=0 + make -j2 -C xapian-applications/omega check V=0 + make -j2 -C xapian-letor check V=0 + checkpatch: name: 'Automated run of xapian-check-patch' runs-on: 'ubuntu-latest' -- 2.11.4.GIT