CMake: Link xz against Threads::Threads if using pthreads #95
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
# SPDX-License-Identifier: 0BSD | |
name: FreeBSD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
FreeBSD-test: | |
runs-on: ubuntu-latest | |
name: Test xz on FreeBSD | |
steps: | |
- uses: actions/[email protected] | |
- name: Test in FreeBSD | |
id: test | |
uses: vmactions/FreeBSD-vm@f8be330398166d1eb0601f01353839d4052367b2 #v1.0.7 | |
with: | |
usesh: true | |
prepare: | | |
pkg install -y autoconf automake gmake gettext-tools gtar libtool m4 po4a | |
run: | | |
set -e | |
export LC_ALL=C LANG=C | |
uname -a | |
./autogen.sh | |
./configure --enable-werror | |
make | |
make check VERBOSE=1 |