-
Notifications
You must be signed in to change notification settings - Fork 260
64 lines (54 loc) · 1.52 KB
/
main.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
53
54
55
56
57
58
59
60
61
62
63
# SPDX-FileCopyrightText: GSConnect Developers https://github.com/GSConnect
#
# SPDX-License-Identifier: GPL-2.0-or-later
name: CI
on:
push:
branches:
- main
- gnome-43
pull_request:
branches:
- main
- gnome-43
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/gsconnect/gsconnect-ci:main
steps:
- uses: actions/checkout@v4
- name: Prepare
run: |
meson --prefix=/usr \
--libdir=lib/ \
-Dgnome_shell_libdir=/usr/lib64/ \
_build
- name: Uninstalled Tests
run: |
meson test -C _build --suite gsconnect:data \
--suite gsconnect:lint \
--print-errorlogs
- name: Installed Tests
run: |
ninja -C _build install
xvfb-run -a dbus-run-session -- \
gnome-desktop-testing-runner gsconnect -L _build/meson-logs
- name: Upload Test Logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-logs
path: _build/meson-logs
- name: Test Build
run: |
ninja -C _build make-zip
- name: Stage packaged extension
run: |
ninja -C _build make-pkgdir
- name: Create and upload packaged artifact
uses: actions/upload-artifact@v4
with:
name: [email protected]
path: _build/[email protected]/