diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76e2bf2..268287a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,7 @@ on: workflow_dispatch: env: + CMAKE_BUILD_DIR: ${{ github.workspace }}/cmake-build CXX: /usr/bin/clang-11 jobs: @@ -65,8 +66,8 @@ jobs: # 11 deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main - - run: cmake . - - run: make clang-tidy + - run: cmake -B $CMAKE_BUILD_DIR . + - run: make -f $CMAKE_BUILD_DIR/Makefile clang-tidy clang-format-check: runs-on: ubuntu-18.04 steps: @@ -100,5 +101,5 @@ jobs: # 11 deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main - - run: cmake . - - run: make clang-format-check + - run: cmake -B $CMAKE_BUILD_DIR . + - run: make -f $CMAKE_BUILD_DIR/Makefile clang-format-check