-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (36 loc) · 1.19 KB
/
main_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
name: Main CI
on:
pull_request:
branches: [main, feature/*]
paths:
- "CommonLibSF/**"
workflow_dispatch:
env:
VCPKG_COMMIT_ID: e44d60e6bf0964064bf69667cd9f3e91dc383c7c
GITHUB_WORKSPACE: ${{ github.workspace }}
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
compiler:
- msvc
- clang-cl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/[email protected]
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
- name: Run CMake
uses: lukka/[email protected]
with:
cmakeListsTxtPath: "${{ github.workspace }}/CommonLibSF/CMakeLists.txt"
configurePreset: build-release-${{ matrix.compiler }}-ninja
configurePresetCmdString: "[`-B`, `$[env.GITHUB_WORKSPACE]/build`, `-S`, `$[env.GITHUB_WORKSPACE]/CommonLibSF`, `--preset`, `$[env.CONFIGURE_PRESET_NAME]`]"
buildPreset: release-${{ matrix.compiler }}-ninja
buildPresetCmdString: "[`--build`, `$[env.GITHUB_WORKSPACE]/build`, `--preset`, `$[env.BUILD_PRESET_NAME]`]"