Skip to content

Commit

Permalink
ci: Update the default workflow
Browse files Browse the repository at this point in the history
Build against latest xdg-desktop-portal, and use Meson.
  • Loading branch information
ebassi authored and GeorgesStavracas committed Oct 19, 2023
1 parent 0728bd9 commit 8e94605
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,36 @@ jobs:
apt-get upgrade -y
apt-get build-dep -y xdg-desktop-portal-gtk
apt-get build-dep -y xdg-desktop-portal
apt-get install -y git libfuse3-dev
apt-get install -y git gsettings-desktop-schemas-dev libfuse3-dev libgnome-desktop-3-dev meson ninja-build
# Build from git so we can test against the newest portals
- name: Build xdg-desktop-portal dependency
run: |
git clone -b 1.14.0 https://github.com/flatpak/xdg-desktop-portal.git ./xdg-desktop-portal
git clone -b 1.18.0 https://github.com/flatpak/xdg-desktop-portal.git ./xdg-desktop-portal
cd ./xdg-desktop-portal
./autogen.sh --sysconfdir=/etc --disable-dependency-tracking --disable-libportal
make -j $(getconf _NPROCESSORS_ONLN)
make install
meson setup -Dsysconfdir=/etc -Dprefix=/usr -Dlibportal=disabled _build .
meson compile -C _build
meson install -C _build
cd ..
- uses: actions/checkout@v4

- name: Configure
run: ./autogen.sh --disable-dependency-tracking
run: meson setup -Dsysconfdir=/etc -Dprefix=/usr _build .

- name: Build
run: make -j $(getconf _NPROCESSORS_ONLN)
run: meson compile -C _build

- name: Check
run: make check -j $(getconf _NPROCESSORS_ONLN)
run: meson test -C _build

- name: Install
run: make install
run: meson install -C _build

- name: Upload test logs
uses: actions/upload-artifact@v3
if: failure() || cancelled()
with:
name: test logs
path: |
tests/*.log
test-suite.log
_build/meson-logs/*

0 comments on commit 8e94605

Please sign in to comment.