1
0
mirror of https://git.tukaani.org/xz.git synced 2025-04-20 06:30:50 +00:00

CI: Update NetBSD

For variety, use CMake and Ninja.
This commit is contained in:
Lasse Collin 2025-04-17 20:36:33 +03:00
parent 85ff0cf0ce
commit 5240fcfee3
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -9,24 +9,31 @@ on:
branches: [ master ] branches: [ master ]
workflow_dispatch: workflow_dispatch:
permissions: {}
jobs: jobs:
NetBSD-test: NetBSD:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Test xz on NetBSD name: NetBSD
steps: steps:
- uses: actions/checkout@v4.1.6 - uses: actions/checkout@v4
- name: Test in NetBSD - name: Test in NetBSD
id: test id: test
uses: vmactions/NetBSD-vm@dd0161ecbb6386e562fd098acf367633501487a4 #v1.1.3 uses: vmactions/netbsd-vm@46a58bbf03682b4cb24142b97fa315ae52bed573 #v1.1.8
with: with:
usesh: true usesh: true
prepare: | prepare: >
/usr/sbin/pkg_add -v autoconf automake gmake gettext-tools gtar-base libtool-base m4 po4a /usr/sbin/pkg_add -v
cmake
gettext-tools
ninja-build
po4a
run: | run: |
set -e set -e
export LC_ALL=C LANG=C
uname -a uname -a
./autogen.sh ./po4a/update-po
./configure --enable-werror # Innocent putc() triggers strict-overflow warnings.
make cmake -G Ninja -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS='-g -O2 -pipe -Wno-error=strict-overflow' -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
make check VERBOSE=1 ninja -C build
ctest --test-dir build --output-on-failure