Simplify CMake build in CI

This commit is contained in:
scribam 2022-01-15 11:38:18 +01:00 committed by Serge Lamikhov-Center
parent b6d1a84be0
commit 7ca433cbe2

View File

@ -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 }}