Skip to content

Commit

Permalink
use meson setup instead of meson options
Browse files Browse the repository at this point in the history
1. use obsolute folder as prefix
2. use checkout@v4
3. use meson setup

Signed-off-by: Carl Zhang <[email protected]>
  • Loading branch information
XinfengZhang committed Feb 1, 2024
1 parent 63ada3b commit a5e2886
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout libva
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: intel/libva
path: libva
- name: checkout libva-utils
uses: actions/checkout@v3
uses: actions/checkout@v4
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"
setenv PKG_CONFIG_PATH $LIBDIR/pkgconfig:$PREFIX/libdata/pkgconfig
cd libva
meson --prefix=$PREFIX --libdir=$LIBDIR _build
meson setup _build --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
meson compile -C _build
meson install -C _build
cd ../libva-utils
meson --prefix=$PREFIX --libdir=$LIBDIR _build
meson setup _build --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
meson compile -C _build
meson install -C _build

0 comments on commit a5e2886

Please sign in to comment.