Skip to content

Commit 2f4414d

Browse files
committed
Added standard CI workflow for restored state
1 parent b2786c7 commit 2f4414d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build & Test
2-
32
on:
43
push:
54
branches: [ main ]
@@ -8,19 +7,22 @@ on:
87

98
jobs:
109
build:
11-
runs-on: windows-2022
10+
runs-on: windows-latest
1211
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: true
1515

16-
- name: Install vcpkg dependencies
17-
run: vcpkg install
16+
- name: Bootstrap Vcpkg
17+
run: |
18+
cd vcpkg
19+
.\bootstrap-vcpkg.bat
1820
19-
- name: Configure with CMake
20-
run: cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 17 2022" -A x64 -S . -B out/build/ci-windows
21+
- name: Configure CMake
22+
run: |
23+
cmake -B build -S . `
24+
-DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" `
25+
-DVCPKG_TARGET_TRIPLET=x64-windows
2126
2227
- name: Build
23-
run: cmake --build out/build/ci-windows --config Release
24-
25-
- name: Test
26-
run: ctest --test-dir out/build/ci-windows -C Release --output-on-failure
28+
run: cmake --build build --config Release

0 commit comments

Comments
 (0)