build: Add GitHub CI support for tests on ports #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenBSD test | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test dpkg on OpenBSD | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test in OpenBSD | |
id: test | |
uses: vmactions/openbsd-vm@v1 | |
env: | |
AUTOCONF_VERSION: 2.72 | |
AUTOMAKE_VERSION: 1.16 | |
MAKE: gmake | |
LDFLAGS: -L/usr/local/lib | |
CPPFLAGS: -isystem /usr/local/include | |
with: | |
envs: 'AUTOCONF_VERSION AUTOMAKE_VERSION MAKE LDFLAGS CPPFLAGS' | |
usesh: true | |
copyback: false | |
prepare: | | |
pkg_add pkgconf libtool autoconf-2.72p0 automake-1.16.5 gettext-tools gettext-runtime gtar-1.35p0 gpatch gmake | |
run: | | |
echo "1.22.x" >.dist-version | |
echo "$GITHUB_SHA" >.dist-vcs-id | |
./autogen && ./configure | |
gmake -j4 check TEST_PARALLEL=4 |