-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (35 loc) · 1.31 KB
/
Build.yml
File metadata and controls
44 lines (35 loc) · 1.31 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
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake Build Windows and Linux x64 Debug/Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
# Runs the job twice: once for Windows and once for Linux
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Clone Platform
uses: actions/checkout@v6
- name: Update Submodules
run: git submodule update --init --force
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
with:
version: 1.3.296.0
cache: true
- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build
- name: Build Release
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --target ALL_BUILD --config Release
- name: Build Debug
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --target ALL_BUILD --config Debug