-
Notifications
You must be signed in to change notification settings - Fork 644
73 lines (61 loc) · 3.5 KB
/
windows-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
name: Windows Build
# Automatically verify pull requests
on: [pull_request]
# Limit to only one build for a given PR source branch at a time,
# cancelling any in-progress builds
concurrency:
group: windows-build-${{ github.head_ref }}
cancel-in-progress: true
jobs:
# This runs on a github-hosted runner, guaranteed fresh for every job run.
# Git, msys2, and other tools come preinstalled. For more, see
# https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md
windows-build:
name: Build guacamole-server on windows server 2022
runs-on: windows-2022
steps:
# TODO: Install libtelnet from source - it's not available in msys2
- name: Update MSYS2 repos and install dependencies
shell: powershell
run: |
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S git base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-autotools mingw-w64-x86_64-libtool libtool
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-cunit mingw-w64-x86_64-make mingw-w64-x86_64-python
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-cairo
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-dlfcn
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-freerdp
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libssh2
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libvncserver
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libwebsockets
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libjpeg-turbo
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libpng
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libgxps
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libtool
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-libwebp
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-openssl
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-pango
C:\\msys64\\usr\\bin\\pacman.exe --noconfirm -S mingw-w64-x86_64-pulseaudio
C:\\msys64\\usr\\bin\\pacman.exe -Q
- name: Configure git to not mangle line endings
run: git config --global core.autocrlf input
- name: Checkout guacamole-server source
uses: actions/checkout@v4
- name: Build guacamole-server
shell: C:\\msys64\\usr\\bin\\bash.exe --login -eo pipefail -o igncr '{0}'
run: |
SERVER_BASE=`cygpath -u '${{ github.workspace }}'`
cd "$SERVER_BASE"
autoreconf -fi
export MINGW_ARCH="mingw64"
export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:/usr/lib/pkgconfig"
export PATH="$PATH:/mingw64/bin:/usr/bin"
export LDFLAGS="-L/mingw64/bin/ -L/usr/bin/ -L/mingw64/lib -lws2_32"
export CFLAGS="-isystem/mingw64/include/ \
-I/mingw64/include/pango-1.0 \
-I/mingw64/include/glib-2.0/ \
-I/mingw64/lib/glib-2.0/include/ \
-I/mingw64/include/harfbuzz/ \
-I/mingw64/include/cairo/ \
-I/mingw64/include/winpr2 \
-Wno-error=expansion-to-defined -Wno-error=attributes -Wno-incompatible-pointer-types"
./configure --with-windows --disable-guacenc --disable-guacd --disable-guaclog
make