Skip to content

Commit 66085da

Browse files
committed
Simplify Windows CI jobs
1 parent 5a6d70e commit 66085da

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/windows-simple-builds.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Windows builds (basic)
1+
name: Windows Builds (Basic)
22

33
on: [push, pull_request]
44

@@ -17,20 +17,15 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Configure build
20-
working-directory: ${{runner.workspace}}
2120
run: |
22-
cmake -S $Env:GITHUB_WORKSPACE `
23-
-B ${{runner.workspace}}/build `
24-
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
25-
-A ${{matrix.platform}} `
26-
--preset all-tests
21+
cmake --preset all-tests `
22+
-A ${{matrix.platform}} `
23+
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
2724
2825
- name: Build tests
29-
working-directory: ${{runner.workspace}}
3026
run: cmake --build build --config ${{matrix.build_type}} --parallel %NUMBER_OF_PROCESSORS%
3127
shell: cmd
3228

3329
- name: Run tests
34-
working-directory: ${{runner.workspace}}/build
35-
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
30+
run: ctest --test-dir build -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
3631
shell: cmd

0 commit comments

Comments
 (0)