-
Notifications
You must be signed in to change notification settings - Fork 393
44 lines (36 loc) · 1.04 KB
/
windows-visual.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
name: Visual Studio
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Debug
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Get INDI Sources
uses: actions/checkout@v3
- name: Install Library
run: |
vcpkg install zlib:x64-windows
vcpkg install cfitsio:x64-windows
vcpkg integrate install
- name: Build INDI Core
run: |
cd ${{ github.workspace }}
mkdir build
cd build
cmake .. -DINDI_BUILD_SERVER=OFF -DINDI_BUILD_DRIVERS=OFF -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .