-
Notifications
You must be signed in to change notification settings - Fork 102
52 lines (44 loc) · 1.44 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
52
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 libfuse3-dev
# 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
cd ./xdg-desktop-portal
./autogen.sh --sysconfdir=/etc --disable-dependency-tracking --disable-libportal
make -j $(getconf _NPROCESSORS_ONLN)
make install
cd ..
- uses: actions/checkout@v4
- name: Configure
run: ./autogen.sh --disable-dependency-tracking
- name: Build
run: make -j $(getconf _NPROCESSORS_ONLN)
- name: Check
run: make check -j $(getconf _NPROCESSORS_ONLN)
- name: Install
run: make install
- name: Upload test logs
uses: actions/upload-artifact@v3
if: failure() || cancelled()
with:
name: test logs
path: |
tests/*.log
test-suite.log