Skip to content

Commit 4b20abb

Browse files
committed
C++11/C++14 testing can only do headers
1 parent df0c94a commit 4b20abb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/wslcxx.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,34 +56,35 @@ jobs:
5656
working-directory: ${{ github.workspace }}
5757
run: rm -rf out
5858

59+
# Test suite requires C++17 features on Linux, so we only test the headers for C++11/C++14
5960
- name: 'Configure CMake (C++11)'
60-
working-directory: ${{ github.workspace }}/Tests
61+
working-directory: ${{ github.workspace }}/Tests/headertest
6162
run: cmake --preset=${{ matrix.build_type }} -DBUILD_CXX11=ON
6263
env:
6364
CC: gcc-${{ matrix.gcc }}
6465
CXX: g++-${{ matrix.gcc }}
6566

6667
- name: 'Build (C++11)'
67-
working-directory: ${{ github.workspace }}/Tests
68+
working-directory: ${{ github.workspace }}/Tests/headertest
6869
run: cmake --build out/build/${{ matrix.build_type }}
6970

7071
- name: 'Clean up'
71-
working-directory: ${{ github.workspace }}
72+
working-directory: ${{ github.workspace }}/Tests/headertest
7273
run: rm -rf out
7374

7475
- name: 'Configure CMake (C++14)'
75-
working-directory: ${{ github.workspace }}/Tests
76+
working-directory: ${{ github.workspace }}/Tests/headertest
7677
run: cmake --preset=${{ matrix.build_type }} -DBUILD_CXX14=ON
7778
env:
7879
CC: gcc-${{ matrix.gcc }}
7980
CXX: g++-${{ matrix.gcc }}
8081

8182
- name: 'Build (C++14)'
82-
working-directory: ${{ github.workspace }}/Tests
83+
working-directory: ${{ github.workspace }}/Tests/headertest
8384
run: cmake --build out/build/${{ matrix.build_type }}
8485

8586
- name: 'Clean up'
86-
working-directory: ${{ github.workspace }}
87+
working-directory: ${{ github.workspace }}/Tests/headertest
8788
run: rm -rf out
8889

8990
- name: 'Configure CMake (C++20)'

0 commit comments

Comments
 (0)