Skip to content

Commit e930ef1

Browse files
committed
WIP: testing basic github action - no docker x4
1 parent 02ceee2 commit e930ef1

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "build"
1+
name: "windows-build"
22

33
on:
44
push:
@@ -7,24 +7,25 @@ on:
77
branches: ["main"]
88

99

10+
11+
env:
12+
BUILD_TYPE: Release
13+
VCPKG_FILE: c:/vcpkg/scripts/buildsystems/vcpkg.cmake
14+
1015
jobs:
11-
build:
16+
windows:
1217
runs-on: windows-latest
1318

1419
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Create Build Environment
18-
run: cmake -E make_directory ${{github.workspace}}/build
19-
20-
- name: Configure CMake
21-
shell: cmd
22-
run: |
23-
cd ${{github.workspace}}/build
24-
cmake .. -DCMAKE_BUILD_TYPE=Release
25-
26-
- name: Build
27-
shell: cmd
28-
run: |
29-
cd ${{github.workspace}}/build
30-
cmake --build . --config Release
20+
- uses: actions/checkout@v4
21+
22+
- name: CMAKE Configure
23+
run: >
24+
cmake -B ${{github.workspace}}/build -S ${{github.workspace}}
25+
-D CMAKE_BUILD_TYPE=Release
26+
- name: CMake Build
27+
run: cmake --build ${{github.workspace}}/build --config Release
28+
29+
# - name: Unit Test
30+
# working-directory: ${{github.workspace}}/build
31+
# run: ctest -C ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)