diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f012ca082..5e9639e09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,10 +52,10 @@ jobs: run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true - name: Configure with CMake - run: cmake -Wdev -S . -B . # We should build out of source but loadtxt needs fixing + run: cmake -Wdev -S . -B build - name: Build and compile - run: cmake --build . || cmake --build . --verbose --parallel 1 + run: cmake --build build || cmake --build build --verbose --parallel 1 - name: test - run: cmake --build . --target test + run: cmake --build build --target test diff --git a/.gitignore b/.gitignore index 259148fa1..85c6dcc9a 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ *.exe *.out *.app + +# Build directory for out-of-tree builds +/build