forked from openscenegraph/OpenSceneGraph
-
Notifications
You must be signed in to change notification settings - Fork 20
98 lines (83 loc) · 2.52 KB
/
build.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
windows:
strategy:
fail-fast: true
matrix:
conf:
- Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Enable vcpkg downloads cache
uses: actions/cache@v4
with:
path: 'C:/vcpkg/downloads'
key: vcpkg_downloads_cache_v1
- name: Enable vcpkg installed cache
uses: actions/cache@v4
with:
path: 'C:/vcpkg/installed'
key: vcpkg_installed_cache_v1
- name: Install dependencies
run: >
vcpkg install --triplet x64-windows
collada-dom
freetype
libiconv
libjpeg-turbo
libpng
libxml2
opengl-registry
tiff
zlib
- uses: ilammy/msvc-dev-cmd@v1
- name: Configure
run: >
cmake
-G Ninja
-B ${{ github.workspace }}/build
-D CMAKE_BUILD_TYPE=${{ matrix.conf }}
-D CMAKE_TOOLCHAIN_FILE='C:/vcpkg/scripts/buildsystems/vcpkg.cmake'
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/build/install
-D CMAKE_CXX_STANDARD=11
-D CMAKE_C_FLAGS='/DWIN32 /D_WINDOWS /Zi'
-D CMAKE_CXX_FLAGS='/DWIN32 /D_WINDOWS /GR /EHsc /Zi'
-D OPENGL_PROFILE=GL2
-D OSG_MSVC_VERSIONED_DLL=OFF
-D OSG_DETERMINE_WIN_VERSION=OFF
-D OSG_FIND_3RD_PARTY_DEPS=OFF
-D BUILD_OSG_PLUGINS_BY_DEFAULT=OFF
-D BUILD_OSG_PLUGIN_OSG=ON
-D BUILD_OSG_PLUGIN_DDS=ON
-D BUILD_OSG_PLUGIN_TGA=ON
-D BUILD_OSG_PLUGIN_BMP=ON
-D BUILD_OSG_PLUGIN_JPEG=ON
-D BUILD_OSG_PLUGIN_PNG=ON
-D BUILD_OSG_PLUGIN_FREETYPE=ON
-D BUILD_OSG_PLUGIN_DAE=ON
-D BUILD_OSG_PLUGIN_KTX=ON
-D BUILD_OSG_APPLICATIONS=OFF
-D BUILD_OSG_DEPRECATED_SERIALIZERS=OFF
-D DYNAMIC_OPENTHREADS=ON
-D DYNAMIC_OPENSCENEGRAPH=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --parallel
- name: Install
run: cmake --install ${{ github.workspace }}/build
- name: Store osg build artifacts
uses: actions/upload-artifact@v4
with:
name: osg-${{ github.sha }}
path: ${{ github.workspace }}/build/install
- name: Store osg dependencies build artifacts
uses: actions/upload-artifact@v4
with:
name: osg-dependencies-${{ github.sha }}
path: 'C:/vcpkg/installed'