ci: actually fail on FreeBSD
[xz/debian.git] / .github / workflows / openbsd.yml
blob400cf8fa902d71b19a190ebf92307a54be28473d
1 # SPDX-License-Identifier: 0BSD
3 name: OpenBSD
5 on:
6   push:
7     branches: [ master ]
8   pull_request:
9     branches: [ master ]
10   workflow_dispatch:
12 jobs:
13   OpenBSD-test:
14     runs-on: ubuntu-latest
15     name: Test xz on OpenBSD
16     steps:
17     - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4
18     - name: Test in OpenBSD
19       id: test
20       uses: vmactions/OpenBSD-vm@eaa3d3f695a5a52971c23958f6dd4cd3397f959d #v1.0.8
21       with:
22         usesh: true
23         prepare: |
24           /usr/sbin/pkg_add -I -v autoconf-2.71 automake-1.16.5 gmake gettext-tools gtar libtool m4
25         run: |
26           export LC_ALL=C LANG=C
27           export AUTOCONF_VERSION=2.71
28           export AUTOMAKE_VERSION=1.16
29           uname -a
30           # OpenBSD ports lack po4a
31           ./autogen.sh --no-po4a
32           ./configure --enable-werror
33           make
34           make check VERBOSE=1