bsd.yml
This file
Path
.github/workflows/bsd.yml
86 lines · 2.8 KiB · YAML
Last changed by
Add FreeBSD and NetBSD CI (#3600)neilbefore adoptiondbbae0d
History of this fileTake it
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687name: BSD
on: push: branches: - master tags: - "jq-*" pull_request:
jobs: freebsd: runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Clone repository uses: actions/checkout@v7 with: submodules: true - name: Build and test uses: vmactions/freebsd-vm@v1 with: usesh: true cache-after-prepare: true prepare: | pkg install -y autoconf automake libtool gmake git run: | set -e # The VM runs as root over a checkout owned by another uid, so git # rejects the repository and scripts/version -- which AC_INIT calls # through m4_esyscmd_s -- exits 128, leaving JQ_VERSION undefined. git config --global --add safe.directory "$PWD" git config --global --add safe.directory "$PWD/vendor/oniguruma" autoreconf -i ./configure --disable-docs --with-oniguruma=builtin --enable-static gmake -j"$(sysctl -n hw.ncpu)" gmake check VERBOSE=yes - name: Upload Test Logs if: ${{ failure() }} uses: actions/upload-artifact@v7 with: name: test-logs-freebsd retention-days: 7 path: | test-suite.log tests/*.log
netbsd: runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Clone repository uses: actions/checkout@v7 with: submodules: true - name: Build and test uses: vmactions/netbsd-vm@v1 with: usesh: true cache-after-prepare: true prepare: | # The image's default PKG_PATH falls back to a 9.0 package set; # point it at the running release instead. PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/" export PKG_PATH pkg_add autoconf automake libtool gmake git run: | set -e # The VM runs as root over a checkout owned by another uid, so git # rejects the repository and scripts/version -- which AC_INIT calls # through m4_esyscmd_s -- exits 128, leaving JQ_VERSION undefined. git config --global --add safe.directory "$PWD" git config --global --add safe.directory "$PWD/vendor/oniguruma" autoreconf -i ./configure --disable-docs --with-oniguruma=builtin --enable-static gmake -j"$(sysctl -n hw.ncpu)" gmake check VERBOSE=yes - name: Upload Test Logs if: ${{ failure() }} uses: actions/upload-artifact@v7 with: name: test-logs-netbsd retention-days: 7 path: | test-suite.log tests/*.log