-
Notifications
You must be signed in to change notification settings - Fork 210
50 lines (49 loc) · 1.54 KB
/
ci.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
name: CI
on:
push:
pull_request:
env:
BuildDocEnabled: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
vulkan-version: [1.3.224.1]
build-shared: [OFF]
include:
- build-shared: ON
os: windows-latest
vulkan-version: 1.3.224.1
continue-on-error: ${{ matrix.vulkan-version == 'latest' }}
steps:
- uses: actions/checkout@v2
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
with:
cmake-version: ${{ env.CMakeVersion }}
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{ matrix.vulkan-version }}
cache: true
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
if: startsWith(matrix.os, 'windows')
- name: Build and Install VSG
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} -A x64
cmake --build .
elif [ "$RUNNER_OS" == "Linux" ]; then
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}}
make -j 3 && sudo make install
elif [ "$RUNNER_OS" == "macOS" ]; then
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}}
make -j 4 && sudo make install
else
echo "$RUNNER_OS not supported"
exit 1
fi