forked from OpenCPN/OpenCPN
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (64 loc) · 1.79 KB
/
windows.yaml
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
---
name: Windows
'on':
push:
branches:
- master
paths-ignore:
- 'buildandroid/**'
pull_request:
branches:
- master
paths-ignore:
- 'buildandroid/**'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
CONFIGURATION: Release
jobs:
build:
runs-on: ${{ matrix.runner }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows VS 2022
runner: windows-2022
env:
wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }}
# Use bash as the shell, even under MSW where the default is PowerShell.
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# required for CMake to find Ninja
- name: "Set up MSVC Developer Command Prompt"
uses: seanmiddleditch/gha-setup-vsdevenv@v3
with:
host_arch: x86
arch: win32
- name: "Dependencies, configure, build"
shell: cmd
run: ci\appveyor.bat
- name: "Check build results"
shell: bash
run: |
ls -l build/$CONFIGURATION/opencpn.exe || exit 1
ls -l build/cli/$CONFIGURATION/opencpn-cmd.exe || exit 1
ls -l build/test/$CONFIGURATION/tests.exe || exit 1
- name: "Run tests"
shell: bash
run: |
set -x
cd build
cmake --build . --config $CONFIGURATION --target install
cmake --build . --config $CONFIGURATION --target run-tests
- name: Upload
shell: bash
run: ci/generic-upload.sh
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
CLOUDSMITH_REPO: ${{ secrets.CLOUDSMITH_REPO }}