From 5025a6522f3a5584d974206ce738824be6e08eac Mon Sep 17 00:00:00 2001 From: Laura Hermanns Date: Wed, 2 Aug 2023 23:23:28 -0400 Subject: [PATCH] Added Release build to Linux CIS script. --- .github/workflows/ci_linux.yml | 48 +++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml index 7da11354e4..99119a6139 100644 --- a/.github/workflows/ci_linux.yml +++ b/.github/workflows/ci_linux.yml @@ -6,11 +6,8 @@ on: pull_request: branches: [ "master" ] -env: - BUILD_TYPE: Debug - jobs: - build_linux: + load_linux_environment: runs-on: ubuntu-latest steps: @@ -23,17 +20,44 @@ jobs: sudo wget -O /etc/apt/sources.list.d/lunarg-vulkan-1.3.236-jammy.list https://packages.lunarg.com/vulkan/1.3.236/lunarg-vulkan-1.3.236-jammy.list sudo apt update sudo apt-get install libx11-dev libxrandr-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev vulkan-sdk vulkan-tools + + - name: Prepare Output Folders + working-directory: tests/Testbed + run: mkdir Output + + build_linux_debug: + runs-on: ubuntu-latest + needs: load_linux_environment + + steps: + - name: Configure CMake Debug + run: cmake -S . -B ${{github.workspace}}/build_debug -DCMAKE_BUILD_TYPE=Debug -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_VULKAN=ON -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON -DLLGL_BUILD_WRAPPER_C99=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" - - name: Configure CMake - run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_VULKAN=ON -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON -DLLGL_BUILD_WRAPPER_C99=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" + - name: Build Debug + run: cmake --build ${{github.workspace}}/build_debug --config Debug + + - name: Testbed Debug + working-directory: tests/Testbed + run: | + mkdir Output/Debug + mkdir Output/Debug/OpenGL + xvfb-run ${{github.workspace}}/build_debug/build/TestbedD gl -v -f -t -o=Output/Debug + + build_linux_release: + runs-on: ubuntu-latest + needs: load_linux_environment + + steps: + - name: Configure CMake Release + run: cmake -S . -B ${{github.workspace}}/build_linux_release -DCMAKE_BUILD_TYPE=Release -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_VULKAN=ON -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON -DLLGL_BUILD_WRAPPER_C99=ON -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + - name: Build Release + run: cmake --build ${{github.workspace}}/build_linux_release --config Release - - name: Testbed + - name: Testbed Release working-directory: tests/Testbed run: | - mkdir Output - mkdir Output/OpenGL - xvfb-run ${{github.workspace}}/build/build/TestbedD gl -v -f -t + mkdir Output/Release + mkdir Output/Release/OpenGL + xvfb-run ${{github.workspace}}/build_linux_release/build/Testbed gl -v -f -t -o=Output/Release