Skip to content

Commit 74e7d95

Browse files
committed
trial with windows and cmake
1 parent 7861218 commit 74e7d95

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: ZEngine Window Build
1+
name: ZEngine Window CMake Build
22

3-
on: workflow_call
3+
on:
4+
push:
5+
branches: [ newcmakelinux ]
46

57
jobs:
6-
cmake-build:
7-
strategy:
8-
matrix:
9-
buildConfiguration: [Debug, Release]
10-
uses: ./.github/workflows/job-cmakebuild-windows.yml
11-
with:
12-
configuration: ${{matrix.buildConfiguration}}
13-
14-
test:
15-
needs: cmake-build
16-
strategy:
17-
matrix:
18-
testConfiguration: [Debug, Release]
19-
uses: ./.github/workflows/job-test-windows.yml
20-
with:
21-
configuration: ${{matrix.testConfiguration}}
22-
23-
deploy:
24-
needs: test
25-
uses: ./.github/workflows/job-deploy-windows.yml
26-
with:
27-
configuration: Release
8+
Windows-CMake-Build:
9+
runs-on: windows-latest
10+
11+
steps:
12+
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Create CMake Build Directory
17+
run: mkdir ../build && cmake -B ../build -DCMAKE_BUILD_TYPE=Debug -G Ninja
18+
19+
- name: Build
20+
run: cmake --build ../build
21+
22+
- name: Test
23+
run: ctest .
24+
working-directory: ../build/ZEngine/tests
25+
26+

0 commit comments

Comments
 (0)