forked from TigerVNC/tigervnc
-
Notifications
You must be signed in to change notification settings - Fork 3
189 lines (181 loc) · 5.81 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: Build
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gettext appstream
sudo apt-get install -y libgnutls28-dev nettle-dev libgmp-dev
sudo apt-get install -y qtbase5-dev libqt5x11extras5-dev
sudo apt-get install -y libxtst-dev libxdamage-dev libxfixes-dev libxrandr-dev libxcursor-dev libpam-dev
sudo apt-get install -y libavcodec-dev libavutil-dev libswscale-dev
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: build
run: make
- name: Install
working-directory: build
run: make tarball
- uses: actions/upload-artifact@v4
with:
name: Linux (Ubuntu Qt5)
path: build/tigervnc-*.tar.gz
build-linux-qt6:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gettext appstream
sudo apt-get install -y libgnutls28-dev nettle-dev libgmp-dev
sudo apt-get install -y libgl-dev qt6-base-dev
sudo apt-get install -y libxtst-dev libxdamage-dev libxfixes-dev libxrandr-dev libxcursor-dev libpam-dev
sudo apt-get install -y libavcodec-dev libavutil-dev libswscale-dev
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: build
run: make
- name: Install
working-directory: build
run: make tarball
- uses: actions/upload-artifact@v4
with:
name: Linux (Ubuntu Qt6)
path: build/tigervnc-*.tar.gz
build-windows:
runs-on: windows-latest
timeout-minutes: 20
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
- name: Install dependencies
run: |
pacman --sync --noconfirm --needed \
make mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
pacman --sync --noconfirm --needed \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-gnutls mingw-w64-x86_64-pixman \
mingw-w64-x86_64-nettle mingw-w64-x86_64-gmp \
mingw-w64-x86_64-qt5-base mingw-w64-x86_64-qt5-tools \
mingw-w64-x86_64-qt5-translations
- name: Configure
run: cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: build
run: make
- name: Install
working-directory: build
env:
MSYS2_PATH_TYPE: inherit
run: make installer winvnc_installer
- uses: actions/upload-artifact@v4
with:
name: Windows (Qt5)
path: build/release/tigervnc*.exe
build-windows-qt6:
runs-on: windows-latest
timeout-minutes: 30
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
- name: Install dependencies
run: |
pacman --sync --noconfirm --needed \
make mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
pacman --sync --noconfirm --needed \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-gnutls mingw-w64-x86_64-pixman \
mingw-w64-x86_64-nettle mingw-w64-x86_64-gmp \
mingw-w64-x86_64-qt6-base mingw-w64-x86_64-qt6-translations
- name: Configure
run: cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: build
run: make
- name: Install
working-directory: build
env:
MSYS2_PATH_TYPE: inherit
run: make installer winvnc_installer
- uses: actions/upload-artifact@v4
with:
name: Windows (Qt6)
path: build/release/tigervnc*.exe
build-macos-qt6:
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install pixman ffmpeg
brew install gnutls nettle gmp
brew install qt@6
- name: Configure
run: |
export PATH="/usr/local/opt/qt@6/bin:$PATH"
cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: build
run: make
build-java:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
java: [ '8', '11', '16' ]
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Configure
working-directory: java
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
- name: Build
working-directory: java/build
run: make
- uses: actions/upload-artifact@v4
with:
name: Java (${{ matrix.java }})
path: java/build/VncViewer.jar
build-packages:
timeout-minutes: 20
strategy:
matrix:
target:
- rocky8
- rocky9
- jammy
- noble
fail-fast: false
runs-on: ubuntu-latest
env:
DOCKER: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Build image
run: docker build -t tigervnc/$DOCKER .github/containers/$DOCKER
- name: Build packages
run: .github/containers/$DOCKER/build.sh
- uses: actions/upload-artifact@v4
with:
name: Packages (${{ matrix.target }})
path: .github/containers/${{ matrix.target }}/result