Skip to content

Commit

Permalink
Make CI use out-of-source CMake builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiPashkin committed Jan 4, 2021
1 parent add5cb9 commit eab46f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
workflow_dispatch:

env:
CMAKE_BUILD_DIR: ${{ github.workspace }}/cmake-build
CXX: /usr/bin/clang-11

jobs:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit eab46f8

Please sign in to comment.