forked from misyltoad/VTFLib
-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (34 loc) · 1.02 KB
/
build.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
name: Build
on:
push:
pull_request:
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: submodules-init
uses: snickerbockers/submodules-init@v4
- name: Generate
working-directory: ${{github.workspace}}
run: cmake . -DVTFLIB_STATIC=ON -DVTFLIB_SHARED=ON -B ./build
- name: Build
working-directory: ${{github.workspace}}
run: cmake --build ./build
build-windows:
runs-on: windows-latest
strategy:
matrix:
build_config: ["Release"]
steps:
- uses: actions/checkout@v2
- name: submodules-init
uses: snickerbockers/submodules-init@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Generate Solution
working-directory: ${{github.workspace}}
run: cmake . -G "Visual Studio 17 2022" -B build
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.build_config}} build\vtflib.sln