Skip to content

Commit d47a8db

Browse files
committed
ci: make first build inplace
1 parent ea7c161 commit d47a8db

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,27 @@ jobs:
123123
- name: Configure C++11
124124
shell: bash
125125
run: >
126-
cmake -S . -B build
126+
cmake -S . -B .
127127
-DPYBIND11_WERROR=ON
128128
-DDOWNLOAD_CATCH=ON
129129
-DDOWNLOAD_EIGEN=ON
130130
-DCMAKE_CXX_STANDARD=11
131131
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
132132
133133
- name: Build C++11
134-
run: cmake --build build -j 2
134+
run: cmake --build . -j 2
135135

136136
- name: Python tests C++11
137-
run: cmake --build build --target pytest -j 2
137+
run: cmake --build . --target pytest -j 2
138138

139139
- name: C++11 tests
140-
run: cmake --build build --target cpptest -j 2
140+
run: cmake --build . --target cpptest -j 2
141141

142142
- name: Interface test C++11
143-
run: cmake --build build --target test_cmake_build
143+
run: cmake --build . --target test_cmake_build
144+
145+
- name: Clean directory
146+
run: git clean -fdx
144147

145148
- name: Configure C++${{ matrix.max-cxx-std }}
146149
shell: bash

0 commit comments

Comments
 (0)