Skip to content

Improvement, cleanup and other changes #98

Improvement, cleanup and other changes

Improvement, cleanup and other changes #98

Workflow file for this run

name: Linux Build
on: [push,pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
Linux:
runs-on: "ubuntu-20.04"
name: OpenGL Samples Linux
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Configure dependencies
run: |
sudo apt-get update
sudo apt-get install pkg-config libsdl2-dev libfreeimage-dev libfreetype6-dev libfmt-dev libglm-dev libglew-dev libgtest-dev googletest mesa-common-dev mesa-utils libopenal-dev
sudo apt-get install glslang-tools libassimp-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libglfw3-dev binutils-dev libeigen3-dev libglu1-mesa-dev
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Glslang, SPIRV-Tools, SPIRV-Cross
vulkan-use-cache: true
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_WITH_TEST=ON -DBUILD_WITH_UBSAN=ON \
-DBUILD_WITH_ASAN=ON -DBUILD_WITH_TEST=ON -DBUILD_WITH_INSTALL=OFF -DBUILD_WITH_COVERAGE=ON -DBUILD_OPT_BUILD_PACKAGES=OFF
- name: Build OpenGL Samples
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE