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
Add FreeBSD and NetBSD CI (#3600)neilbefore adoptiondbbae0d
lines 1–86why, one step back1name: BSD23on:4 push:5 branches:6 - master7 tags:8 - "jq-*"9 pull_request:1011jobs:12 freebsd:13 runs-on: ubuntu-latest14 timeout-minutes: 6015 steps:16 - name: Clone repository17 uses: actions/checkout@v718 with:19 submodules: true20 - name: Build and test21 uses: vmactions/freebsd-vm@v122 with:23 usesh: true24 cache-after-prepare: true25 prepare: |26 pkg install -y autoconf automake libtool gmake git27 run: |28 set -e29 # The VM runs as root over a checkout owned by another uid, so git30 # rejects the repository and scripts/version -- which AC_INIT calls31 # through m4_esyscmd_s -- exits 128, leaving JQ_VERSION undefined.32 git config --global --add safe.directory "$PWD"33 git config --global --add safe.directory "$PWD/vendor/oniguruma"34 autoreconf -i35 ./configure --disable-docs --with-oniguruma=builtin --enable-static36 gmake -j"$(sysctl -n hw.ncpu)"37 gmake check VERBOSE=yes38 - name: Upload Test Logs39 if: ${{ failure() }}40 uses: actions/upload-artifact@v741 with:42 name: test-logs-freebsd43 retention-days: 744 path: |45 test-suite.log46 tests/*.log4748 netbsd:49 runs-on: ubuntu-latest50 timeout-minutes: 6051 steps:52 - name: Clone repository53 uses: actions/checkout@v754 with:55 submodules: true56 - name: Build and test57 uses: vmactions/netbsd-vm@v158 with:59 usesh: true60 cache-after-prepare: true61 prepare: |62 # The image's default PKG_PATH falls back to a 9.0 package set;63 # point it at the running release instead.64 PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/"65 export PKG_PATH66 pkg_add autoconf automake libtool gmake git67 run: |68 set -e69 # The VM runs as root over a checkout owned by another uid, so git70 # rejects the repository and scripts/version -- which AC_INIT calls71 # through m4_esyscmd_s -- exits 128, leaving JQ_VERSION undefined.72 git config --global --add safe.directory "$PWD"73 git config --global --add safe.directory "$PWD/vendor/oniguruma"74 autoreconf -i75 ./configure --disable-docs --with-oniguruma=builtin --enable-static76 gmake -j"$(sysctl -n hw.ncpu)"77 gmake check VERBOSE=yes78 - name: Upload Test Logs79 if: ${{ failure() }}80 uses: actions/upload-artifact@v781 with:82 name: test-logs-netbsd83 retention-days: 784 path: |85 test-suite.log86 tests/*.log