Skip to content

Commit

Permalink
ci: Use one way to build
Browse files Browse the repository at this point in the history
Build in the same way as Linux.

Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Jul 12, 2024
1 parent 6a6678a commit 5d63cee
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/FreeBSD.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: FreeBSD check

on:
push:
pull_request:
branches: [ "master" ]
name: FreeBSD
on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest
env:
BUILD_PATH: /tmp/build
INSTALL_PATH: /tmp/install

steps:
- uses: actions/checkout@v4
- name: FreeBSD check
Expand All @@ -21,6 +21,8 @@ jobs:
json-c libinotify googletest
libavif giflib libheif libjxl libexif openexr png tiff webp jpeg-turbo
run: |
meson setup -Dtests=enabled --prefix=/usr /tmp/build
ninja -C /tmp/build
meson test --verbose -C /tmp/build
meson setup -Dtests=enabled --prefix=/usr ${{ env.BUILD_PATH }}
meson compile -C ${{ env.BUILD_PATH }}
env DESTDIR=${{ env.INSTALL_PATH }} meson install -C ${{ env.BUILD_PATH }}
${{ env.INSTALL_PATH }}/usr/bin/swayimg --version
meson test --verbose -C ${{ env.BUILD_PATH }}

0 comments on commit 5d63cee

Please sign in to comment.