diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 3c77c525a..dde4e2c4b 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -4,64 +4,67 @@ # https://github.com/vmactions/openbsd-vm # https://github.com/vmactions/netbsd-vm -# on: [push, pull_request] -# name: bsd-tests -# concurrency: -# group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }} -# cancel-in-progress: true -# jobs: -# freebsd: -# runs-on: macos-12 -# steps: -# - uses: actions/checkout@v4 -# - name: Run tests -# uses: vmactions/freebsd-vm@v0 -# with: -# usesh: true -# prepare: | -# pkg install -y gcc python3 -# run: | -# set -e -x -# make install-pip -# python3 -m pip install --user setuptools -# make install -# make test -# make test-memleaks -# openbsd: -# runs-on: macos-12 -# steps: -# - uses: actions/checkout@v4 -# - name: Run tests -# uses: vmactions/openbsd-vm@v0 -# with: -# usesh: true -# prepare: | -# set -e -# pkg_add gcc python3 -# run: | -# set -e -# make install-pip -# python3 -m pip install --user setuptools -# make install -# make test -# make test-memleaks -# netbsd: -# runs-on: macos-12 -# steps: -# - uses: actions/checkout@v4 -# - name: Run tests -# uses: vmactions/netbsd-vm@v0 -# with: -# usesh: true -# prepare: | -# set -e -# pkg_add -v pkgin -# pkgin update -# pkgin -y install python311-* py311-setuptools-* gcc12-* -# run: | -# set -e -# make install-pip PYTHON=python3.11 -# python3.11 -m pip install --user setuptools -# make install PYTHON=python3.11 -# make test PYTHON=python3.11 -# make test-memleaks PYTHON=python3.11 +on: [push, pull_request] +name: bsd-tests +concurrency: + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }} + cancel-in-progress: true +jobs: + check-label: + # XXX: disable all because the vmaction is unreliable + if: ${{ github.event.label.name == 'disabled' }} + freebsd: + runs-on: macos-12 + steps: + - uses: actions/checkout@v4 + - name: Run tests + uses: vmactions/freebsd-vm@v0 + with: + usesh: true + prepare: | + pkg install -y gcc python3 + run: | + set -e -x + make install-pip + python3 -m pip install --user setuptools + make install + make test + make test-memleaks + openbsd: + runs-on: macos-12 + steps: + - uses: actions/checkout@v4 + - name: Run tests + uses: vmactions/openbsd-vm@v0 + with: + usesh: true + prepare: | + set -e + pkg_add gcc python3 + run: | + set -e + make install-pip + python3 -m pip install --user setuptools + make install + make test + make test-memleaks + netbsd: + runs-on: macos-12 + steps: + - uses: actions/checkout@v4 + - name: Run tests + uses: vmactions/netbsd-vm@v0 + with: + usesh: true + prepare: | + set -e + pkg_add -v pkgin + pkgin update + pkgin -y install python311-* py311-setuptools-* gcc12-* + run: | + set -e + make install-pip PYTHON=python3.11 + python3.11 -m pip install --user setuptools + make install PYTHON=python3.11 + make test PYTHON=python3.11 + make test-memleaks PYTHON=python3.11