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 8c5b566
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ 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
Expand All @@ -30,14 +30,11 @@ jobs:
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 8c5b566

Please sign in to comment.