use meson setup instead of meson options #20
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: freebsd | |
on: | |
push: | |
paths-ignore: | |
- '.github/workflows/**' | |
- '!.github/workflows/freebsd.yml' | |
pull_request: | |
paths-ignore: | |
- '.github/workflows/**' | |
- '!.github/workflows/freebsd.yml' | |
jobs: | |
freebsd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout libva | |
uses: actions/checkout@v3 | |
with: | |
repository: intel/libva | |
path: libva | |
- name: checkout libva-utils | |
uses: actions/checkout@v3 | |
with: | |
path: libva-utils | |
- name: test | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
prepare: | | |
pkg install -y meson pkgconf libdrm libXext libXfixes wayland | |
pkg install -y -x '^mesa($|-libs)' | |
run: | | |
set PREFIX="$PWD/_install" | |
set LIBDIR="$PREFIX/lib" | |
cd libva | |
meson setup _build --prefix=$PREFIX --libdir=$LIBDIR | |
meson compile -C _build | |
meson install -C _build | |
cd ../libva-utils | |
meson setup _build --prefix=$PREFIX --libdir=$LIBDIR | |
meson compile -C _build | |
meson install -C _build |