-
Notifications
You must be signed in to change notification settings - Fork 53
173 lines (135 loc) · 5.99 KB
/
ci_x64.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: CI x64
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- '**.cpp'
- '**.hpp'
- '**.txt'
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
SAMPLE_MODELS_LOCATION: tests/gltf/glTF-Sample-Models
jobs:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON
- name: Build (Windows)
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}\build\tests\Release\fastgltf_tests.exe -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_windows_deprecated_extensions:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON -DFASTGLTF_ENABLE_DEPRECATED_EXT=ON
- name: Build (Windows)
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target tests/fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}\build\tests\Release\fastgltf_tests.exe -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_linux:
strategy:
matrix:
c_compiler: [gcc-9, gcc-10, clang-13]
include:
- cxx_compiler: g++-9
c_compiler: gcc-9
- cxx_compiler: g++-10
c_compiler: gcc-10
- cxx_compiler: clang++-13
c_compiler: clang-13
runs-on: ubuntu-latest
env:
CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
# GLFW requires these libs to be present so that configuring succeeds.
- name: Install libxandr
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}/build/tests/fastgltf_tests -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]
build_linux_deprecated_extensions:
strategy:
matrix:
c_compiler: [gcc-9, gcc-10, clang-13]
include:
- cxx_compiler: g++-9
c_compiler: gcc-9
- cxx_compiler: g++-10
c_compiler: gcc-10
- cxx_compiler: clang++-13
c_compiler: clang-13
runs-on: ubuntu-latest
env:
CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: sample-models-cache
with:
path: ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
key: gltf-sample-models
- name: Install Python dependencies
run: pip3 install Jinja2
- name: Download dependencies
run: python3 fetch_test_deps.py
- name: Clone glTF-Sample-Models
if: steps.sample-models-cache.outputs.cache-hit != 'true'
run: git clone https://github.com/KhronosGroup/glTF-Sample-Models ${{ github.workspace }}/${{ env.SAMPLE_MODELS_LOCATION }}
# GLFW requires these libs to be present so that configuring succeeds.
- name: Install libxandr
run: sudo apt-get install -y libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DFASTGLTF_ENABLE_TESTS=ON -DFASTGLTF_ENABLE_DEPRECATED_EXT=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --target fastgltf_tests --verbose
- name: Run tests
run: ${{ github.workspace }}/build/tests/fastgltf_tests -d yes --order lex [base64],[gltf-loader],[gltf-tools],[uri-tests],[vector-tests]