-
-
Notifications
You must be signed in to change notification settings - Fork 67
60 lines (58 loc) · 1.79 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install Ubuntu Build Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update
sudo apt install gettext libwxgtk3.0-gtk3-dev libgtk-3-dev libgcrypt20-dev liblzo2-dev
- name: Install MacOS Build Dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew uninstall --ignore-dependencies gnutls libgcrypt
brew install wxwidgets
- name: Install Windows Build Dependencies
if: ${{ matrix.os == 'windows-latest' }}
uses: johnwason/vcpkg-action@v4
id: vcpkg
with:
pkgs: wxwidgets
triplet: x64-windows
token: ${{ github.token }}
- name: Build
run: |
mkdir build
cd build
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} ..
cmake --build .
cpack -V -C Debug
- name: Archive Ubuntu Build Artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: MultiVNC Debian Package
path: build/*.deb
- name: Archive MacOS Build Artifacts
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v3
with:
name: MultiVNC MacOS Package
path: build/*.dmg
- name: Archive Windows Build Artifacts
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v3
with:
name: MultiVNC Windows Package
path: build/*.exe