From 666690c5c5a9809fdc5ddf1a58adb54b40c5609c Mon Sep 17 00:00:00 2001 From: Michael Ragazzon Date: Sat, 2 Dec 2023 18:00:53 +0100 Subject: [PATCH] Include both latest and legacy ubuntu images in github actions workflow --- .github/workflows/build.yml | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e52667b9b..0e6ca2113 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: Linux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: BUILD_TYPE: Release @@ -55,6 +55,49 @@ jobs: run: ctest -C $BUILD_TYPE + Linux-legacy: + runs-on: ubuntu-20.04 + + env: + BUILD_TYPE: Release + CC: ${{ matrix.cc }} + CXX: ${{ matrix.cxx }} + + strategy: + fail-fast: false + matrix: + include: + - cc: clang + cxx: clang++ + cmake_options: -DENABLE_PRECOMPILED_HEADERS=OFF -DSAMPLES_BACKEND=GLFW_GL2 + - cc: clang + cxx: clang++ + cmake_options: -DBUILD_TESTING=ON -DSAMPLES_BACKEND=SDL_VK -DCMAKE_BUILD_TYPE=Debug + - cmake_options: -DBUILD_TESTING=ON + - cmake_options: -DSAMPLES_BACKEND=SDL_VK -DRMLUI_VK_DEBUG=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DCMAKE_BUILD_TYPE=Debug + + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: |- + sudo apt-get update + sudo apt-get install cmake ninja-build libsdl2-dev libsdl2-image-dev libfreetype6-dev libglew-dev liblua5.2-dev libglfw3-dev + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/Build + + - name: Configure CMake + working-directory: ${{github.workspace}}/Build + run: >- + cmake $GITHUB_WORKSPACE -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_LUA_BINDINGS=ON -DBUILD_SAMPLES=ON -DWARNINGS_AS_ERRORS=ON + ${{ matrix.cmake_options }} + + - name: Build + working-directory: ${{github.workspace}}/Build + run: cmake --build . --config $BUILD_TYPE + + macOS: runs-on: macos-latest