Skip to content

Updated README.md and resources. #707

Updated README.md and resources.

Updated README.md and resources. #707

name: Release build on Linux
on:
push:
branches-ignore:
- 'untested/**'
pull_request:
branches-ignore:
- 'untested/**'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
CPP_COMPILER: clang++
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-24.04
steps:
- name: Setup Libraries
run: |
sudo apt-get update
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 clang-14
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 cmake
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 ninja-build
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 libwayland-dev
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 libxkbcommon-dev
sudo apt-get install -qq -o=Dpkg::Use-Pty=0 xorg-dev
- name: Setup Vulkan-SDK
run: |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list http://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list
sudo apt update
sudo apt install vulkan-sdk
- name: Git Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: |
mkdir ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER:FILEPATH=${{env.CPP_COMPILER}} -S ${{github.workspace}}
- name: Build
# Build your program with the given configuration
run: |
cd ${{github.workspace}}/build
ninja
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}