diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index d648f654c..65c0eaaa3 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -12,28 +12,25 @@ on: - "c/**" - .github/workflows/c.yaml jobs: - ubuntu-lts: - strategy: matrix: - build_type: [ "Debug", "Release" ] - compiler: [ - { c: "gcc-6", cxx: "g++-6", package: "gcc-6 g++-6" }, - { c: "clang-6.0", cxx: "clang++-6.0", package: "clang-6.0" } - ] - build_shared_libraries: [ true, false ] - exclude: [ - { build_type: "Debug", compiler: { c: "gcc-6", cxx: "g++-6" }, build_shared_libraries: false } - ] - - name: "Ubuntu 18.04 (Build: ${{ matrix.build_type }}, Compilers: ${{ matrix.compiler.c }}/${{ matrix.compiler.cxx }}, Shared Library: ${{ matrix.build_shared_libraries }})" - + build_type: ["Debug", "Release"] + compiler: + [ + { c: "gcc-7", cxx: "g++-7", package: "gcc-7 g++-7" }, + { c: "clang-6.0", cxx: "clang++-6.0", package: "clang-6.0" }, + ] + build_shared_libraries: [true, false] + + name: "Ubuntu 20.04 (Build: ${{ matrix.build_type }}, Compilers: ${{ matrix.compiler.c }}/${{ matrix.compiler.cxx }}, Shared Library: ${{ matrix.build_shared_libraries }})" + + # We run on a docker image to avoid being affected from GitHub + # decommissioning certain runners runs-on: ubuntu-latest - container: ubuntu:18.04 + container: ubuntu:20.04 steps: - - name: Setup run: | apt-get -qq update @@ -66,7 +63,7 @@ jobs: -DBUILD_EXAMPLES=true - name: Build - run: cmake --build build --parallel + run: cmake --build build --parallel - name: Example run: cmake --build build --parallel --target examples @@ -114,7 +111,6 @@ jobs: cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" cmake --build c/test_package/build - big-endian: name: Test Big Endian runs-on: ubuntu-20.04 @@ -157,7 +153,6 @@ jobs: run: | bazel test //... - asan: name: ASAN runs-on: ubuntu-20.04 @@ -178,7 +173,6 @@ jobs: run: | bazel test --config=asan //... - ubsan: name: UBSAN runs-on: ubuntu-20.04 @@ -199,12 +193,11 @@ jobs: run: | bazel test --config=ubsan //... - windows-2019: strategy: matrix: - generator: [ "MinGW Makefiles", "Visual Studio 16 2019" ] - build_shared_libraries: [ true, false ] + generator: ["MinGW Makefiles", "Visual Studio 16 2019"] + build_shared_libraries: [true, false] name: "Windows 2019 (Generator: ${{ matrix.generator }}, Shared Library: ${{ matrix.build_shared_libraries }})" runs-on: windows-2019 steps: @@ -239,4 +232,3 @@ jobs: run: | cmake -G "${{ matrix.generator }}" -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install" cmake --build c/test_package/build -