-
-
Notifications
You must be signed in to change notification settings - Fork 88
69 lines (67 loc) · 2.29 KB
/
ci.yml
File metadata and controls
69 lines (67 loc) · 2.29 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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- os: macos-latest
cmake_options: "-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug"
- os: windows-latest
cmake_options: "-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Check translations
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
for f in po/*.po; do grep -LE '^msgid "translator-credits"' $f ; done
- name: Install Conan
uses: conan-io/setup-conan@v1
with:
cache_packages: 'true'
- name: Install Ubuntu Build Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update
sudo apt install gettext zlib1g-dev libwxgtk3.2-dev libgtk-3-dev libssl-dev libssh2-1-dev libsasl2-dev liblzo2-dev
- name: Install MacOS Build Dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
conan install . --output-folder=build --build=missing --settings=build_type=Debug
- name: Install Windows Build Dependencies
if: ${{ matrix.os == 'windows-latest' }}
run: |
conan install . --output-folder=build --build=missing --settings=build_type=Debug
- name: Build
shell: bash
run: |
mkdir -p build
cd build
cmake ${{ matrix.cmake_options }} ..
cmake --build .
cpack -V -C Debug
- name: Archive Ubuntu Build Artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: MultiVNC Debian Package
path: build/*.deb
- name: Archive MacOS Build Artifacts
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: MultiVNC MacOS Package
path: build/*.dmg
- name: Archive Windows Build Artifacts
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v4
with:
name: MultiVNC Windows Package
path: build/*.msi