-
Notifications
You must be signed in to change notification settings - Fork 115
81 lines (70 loc) · 2.15 KB
/
build.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: build and test
on:
push:
branches-ignore:
- "gh-pages"
tags-ignore:
- "v0.[0-9]**"
pull_request:
branches-ignore:
- "gh-pages"
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
include:
# GCC builds
- CC: gcc
CONF_FLAGS:
CHECK: 1
DISTCHECK: 1
name_extra: Basic build and dist check
- CC: gcc
CONF_FLAGS: --without-simd
name_extra: Without simd
- CC: gcc
CONF_FLAGS: --enable-glamor
name_extra: With glamor
- CC: gcc
CONF_FLAGS: --host=i686-linux
CFLAGS: -m32
arch: i386
name_extra: 32-bit build
# clang builds
- CC: clang
CONF_FLAGS:
CHECK: 1
DISTCHECK: 1
name_extra: Basic build and dist check
- CC: clang
CONF_FLAGS: --without-simd
name_extra: Without simd
- CC: clang
CONF_FLAGS: --enable-glamor
name_extra: With glamor
- CC: clang
CONF_FLAGS: --host=i686-linux
CFLAGS: -m32
arch: i386
name_extra: 32-bit build
name: ${{ matrix.name_extra }} (${{ matrix.CC }})
runs-on: ubuntu-latest
env:
CC: ${{ matrix.CC }}
CFLAGS: ${{matrix.CFLAGS }}
XRDP_CFLAGS: -I${{ github.workspace }}/xrdp/common
steps:
- uses: actions/checkout@v3
- run: sudo scripts/install_xorgxrdp_build_dependencies_with_apt.sh ${{ matrix.arch }} --allow-downgrades --allow-remove-essential --allow-change-held-packages
- run: git clone --depth 1 --branch=devel https://github.com/neutrinolabs/xrdp.git ${{ github.workspace}}/xrdp
- run: ./bootstrap
- run: ./configure ${{ matrix.CONF_FLAGS }}
- run: make CFLAGS="$CFLAGS -O2 -Wall -Wwrite-strings -Werror"
- if: ${{ matrix.CHECK }}
run: make check
- if: ${{ matrix.DISTCHECK }}
run: make distcheck
- if: ${{ always() }}
name: Display test logs (make check only)
run: scripts/display_test_logs