-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (57 loc) · 1.9 KB
/
build-windows.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
name: Windows
on:
push:
pull_request:
branches:
- main
jobs:
build-windows:
runs-on: windows-2019
steps:
- name: Download eCAL
uses: robinraju/[email protected]
with:
repository: "eclipse-ecal/ecal"
latest: true
fileName: "ecal_*-win64.exe"
- name: Extract eCAL Version
run: |
echo "ECAL_VERSION=$(ls | sed 's@^[^0-9]*\([0-9.]\+\).*@\1@' | cut -d"." -f-2)" >> "$GITHUB_ENV"
shell: bash
- name: Install eCAL
run: Start-Process -Wait -FilePath ".\ecal_*-win64.exe" -ArgumentList "/SILENT /ALLUSERS /SUPPRESSMSGBOXES /NORESTART /TYPE=full"
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
target: 'desktop'
arch: 'win64_msvc2015_64'
- name: CMake
run: |
mkdir "${{ runner.workspace }}\_build"
cd "${{ runner.workspace }}\_build"
cmake -G "Visual Studio 16 2019" -Tv142 -Ax64 ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON ^
-DCMAKE_PREFIX_PATH="C:/eCAL/lib/cmake/;C:/eCAL/cmake" ^
-DCMAKE_MODULE_PATH="C:/eCAL/cmake" ^
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}\_deploy" ^
%GITHUB_WORKSPACE%
shell: cmd
- name: Build
run: cmake --build . --config Release
working-directory: ${{ runner.workspace }}\_build
- name: Install
run: |
cmake --build . --config Release --target install
working-directory: ${{ runner.workspace }}\_build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ecal-camera-samples-windows-ecal-${{env.ECAL_VERSION}}
path: ${{ runner.workspace }}\_deploy\bin