-
Notifications
You must be signed in to change notification settings - Fork 97
81 lines (67 loc) · 2 KB
/
check.yml
File metadata and controls
81 lines (67 loc) · 2 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Flatpak-builder CI
on:
push:
branches:
- main
- 'flatpak-builder-1.*.x'
pull_request:
branches:
- main
- 'flatpak-builder-1.*.x'
env:
DEBIAN_FRONTEND: noninteractive
TESTS_TIMEOUT: 10 # in minutes
permissions:
contents: read
jobs:
check-meson:
name: Ubuntu meson build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-24.04']
compiler: ['gcc', 'clang']
env:
CC: ${{ matrix.compiler }}
BASE_CFLAGS: -Wp,-D_FORTIFY_SOURCE=2
BUILDDIR: builddir
CONFIG_OPTS: -Dinstalled_tests=true
steps:
- name: Check out flatpak-builder
# 6.0.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y findutils
sudo apt-get install -y \
${{ matrix.compiler }} \
$(xargs < .github/dependencies.apt.txt)
- name: Configure flatpak-builder
run: meson setup --wrap-mode nodownload ${CONFIG_OPTS} ${BUILDDIR} .
- name: Build flatpak-builder with Meson
run: meson compile -C ${BUILDDIR}
- name: Upload docs
# 7.0.0
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
if-no-files-found: error
overwrite: true
name: docs
path: |
builddir/doc/
- name: Run tests with Meson
run: timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson test -C ${BUILDDIR} --verbose
- name: Upload test logs
# 7.0.0
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
if: failure() || cancelled()
with:
name: test logs
path: |
builddir/meson-logs/testlog.txt
installed-test-logs/
- name: Configure flatpak-builder with Meson wraps
run: meson setup --wrap-mode=forcefallback ${CONFIG_OPTS} ${BUILDDIR}_wrap .
- name: Build flatpak-builder with Meson wraps
run: meson compile -C ${BUILDDIR}_wrap