-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.37 KB
/
builds.yml
File metadata and controls
50 lines (42 loc) · 1.37 KB
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
name: Builds
on:
# Do it on every push or PR on these branches
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Do build on demand
workflow_dispatch:
jobs:
build:
name: "${{matrix.title}} (${{matrix.cc}}, ${{matrix.arch}}, ${{matrix.build_type}})"
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
# Build on Mac and Linux is possible too (all code is cross platform), just windows for now.
- { title: "Windows", os: "windows-latest", cc: "vs2022", arch: "x64", build_type: "Release", package_type: "x64-windows-static-md", script: "bat" }
- { title: "Windows", os: "windows-latest", cc: "vs2022", arch: "x64", build_type: "Debug", package_type: "x64-windows-static-md", script: "bat" }
steps:
- uses: actions/checkout@v2
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: 1.3.204.0
cache: true
- name: Prebuild
working-directory: ${{github.workspace}}
shell: bash
run: |
cd demo
./prebuild.bat
- name: Build Windows
working-directory: ${{github.workspace}}
shell: bash
run: |
cd demo
./config.bat
cd build
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build . --config ${{ matrix.build_type }}