From 7ca433cbe2b6433d6577e32f4d911fe604e00edc Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 15 Jan 2022 11:38:18 +0100 Subject: [PATCH] Simplify CMake build in CI --- .github/workflows/c-cpp.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index afde9c7..fba9240 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -45,11 +45,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Create Build Directory - run: cmake -E make_directory ${{ runner.workspace }}/build - name: Configure CMake - working-directory: ${{ runner.workspace }}/build - run: cmake ${{ github.workspace }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES + run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES - name: Build - working-directory: ${{ runner.workspace }}/build - run: cmake --build . --config ${{ matrix.build_type }} + run: cmake --build build --config ${{ matrix.build_type }}