From 0103408a5c3aced77e4dcc9565ca0849d9120e19 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 3 Nov 2020 14:02:07 -0800 Subject: [PATCH] Update CI config --- .github/workflows/linux.yml | 12 +++++++++--- .github/workflows/macos.yml | 6 ++++-- .github/workflows/windows.yml | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4e1887f1..d56d2570 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,20 +7,26 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - cxx: [g++-8, clang++] + cxx: [g++-4.8, g++-8, g++-10, clang++] build_type: [Debug, Release] steps: - uses: actions/checkout@v2 + - name: Install GCC + if: matrix.cxx == 'g++-4.8' + run: sudo apt install g++-4.8 + - name: Create Build Environment run: cmake -E make_directory ${{runner.workspace}}/build - - name: Configure CMake + - name: Configure working-directory: ${{runner.workspace}}/build env: CXX: ${{matrix.cxx}} - run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} $GITHUB_WORKSPACE + run: | + cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ + -DFMT_DOC=OFF -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE - name: Build working-directory: ${{runner.workspace}}/build diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 3f04a527..75ae194c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -15,9 +15,11 @@ jobs: - name: Create Build Environment run: cmake -E make_directory ${{runner.workspace}}/build - - name: Configure CMake + - name: Configure working-directory: ${{runner.workspace}}/build - run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} $GITHUB_WORKSPACE + run: | + cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ + -DFMT_DOC=OFF -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE - name: Build working-directory: ${{runner.workspace}}/build diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ed1d280f..088ffc71 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,7 +22,7 @@ jobs: - name: Create Build Environment run: cmake -E make_directory ${{runner.workspace}}/build - - name: Configure CMake + - name: Configure # Use a bash shell for $GITHUB_WORKSPACE. shell: bash working-directory: ${{runner.workspace}}/build