-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.36 KB
/
cmake-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
51
52
name: CMake Build And Test
on:
push:
branches: [ "main", "develop" ]
paths: [ "src/app/**", "buildenv/**" ]
pull_request:
branches: [ "main", "develop" ]
paths: [ "src/app/**", "buildenv/**" ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
build:
name: Build
strategy:
matrix:
kind: ['x64-Release', 'x86-Release', 'ARM64-Release']
include:
- kind: x64-Release
config: Release
arch: x64
archalias: x64
- kind: x86-Release
config: Release
arch: x86
archalias: Win32
- kind: ARM64-Release
config: Release
arch: ARM64
archalias: ARM64
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Build projects with CMake
run: |
cmake -Sbuildenv -Bbuild\Cmake-${{ matrix.config }}-${{ matrix.arch }} -DCMAKE_BUILD_TYPE=${{ matrix.config }} -T host=x64 -A ${{ matrix.archalias }}
cmake --build build\Cmake-${{ matrix.config }}-${{ matrix.arch }} --config ${{ matrix.config }}