-
Notifications
You must be signed in to change notification settings - Fork 102
51 lines (43 loc) · 1.47 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Portal CI
on: [push, pull_request]
env:
DEBIAN_FRONTEND: noninteractive
jobs:
test:
name: Ubuntu 22.04 build
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- name: Install dependencies
run: |
sed -i '/deb-src/s/^# //' /etc/apt/sources.list
apt-get update
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 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.18.0 https://github.com/flatpak/xdg-desktop-portal.git ./xdg-desktop-portal
cd ./xdg-desktop-portal
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: meson setup -Dsysconfdir=/etc -Dprefix=/usr _build .
- name: Build
run: meson compile -C _build
- name: Check
run: meson test -C _build
- name: Install
run: meson install -C _build
- name: Upload test logs
uses: actions/upload-artifact@v3
if: failure() || cancelled()
with:
name: test logs
path: |
_build/meson-logs/*