Skip to content

git: enable LFS support on res/ folder #196

git: enable LFS support on res/ folder

git: enable LFS support on res/ folder #196

Workflow file for this run

name: Build
on:
push:
branches:
- master
- develop
- 'feature/**'
- 'bugfix/**'
# FIXME
# pull_request:
# branches:
# - 'feature/**'
# - 'bugfix/**'
env:
vulkan_sdk_version: '1.3.250.1'
vulkan_sdk_modules: 'Vulkan-Headers Vulkan-Loader SPIRV-Tools Glslang'
jobs:
build_ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {
name: "GCC Shared",
cmake_build_shared_libs: ON,
}
- {
name: "GCC Static",
cmake_build_shared_libs: OFF,
}
cmake_build_type: [Debug, Release]
name: "Ubuntu ${{ matrix.config.name }} ${{ matrix.cmake_build_type }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get install -y build-essential cmake gcc libunwind-dev libx11-xcb-dev libxcb-xkb-dev libasound2-dev
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: ${{ env.vulkan_sdk_version }}
vulkan-components: ${{ env.vulkan_sdk_modules }}
vulkan-use-cache: true
# FIXME Enable bullet physics
- name: Configure CMake
run: |
cmake -H. -Bbuild \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
-DBUILD_SHARED_LIBS=${{ matrix.config.cmake_build_shared_libs }} \
-DREAPER_BUILD_WARNINGS_AS_ERRORS=ON \
-DREAPER_GIT_HOOKS_AUTO_UPDATE=OFF \
-DREAPER_RUN_CLANG_TIDY=OFF \
-DREAPER_HEADLESS=ON \
-DREAPER_USE_TRACY=OFF \
-DREAPER_USE_BULLET_PHYSICS=OFF
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10
build_windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
config:
- {
name: "MSVC Static",
cmake_generator: "Visual Studio 17 2022",
cmake_build_shared_libs: OFF,
}
cmake_arch: [x64]
cmake_build_type: [Release]
name: "Windows ${{ matrix.config.name }} ${{ matrix.cmake_arch }} ${{ matrix.cmake_build_type }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: ${{ env.vulkan_sdk_version }}
vulkan-components: ${{ env.vulkan_sdk_modules }}
vulkan-use-cache: true
# FIXME Enable bullet physics
- name: Configure CMake
run: |
cmake .\ -Bbuild `
-G "${{ matrix.config.cmake_generator }}" `
-A "${{ matrix.cmake_arch }}" `
-DBUILD_SHARED_LIBS=${{ matrix.config.cmake_build_shared_libs }} `
-DREAPER_BUILD_WARNINGS_AS_ERRORS=ON `
-DREAPER_GIT_HOOKS_AUTO_UPDATE=OFF `
-DREAPER_RUN_CLANG_TIDY=OFF `
-DREAPER_HEADLESS=ON `
-DREAPER_USE_TRACY=OFF `
-DREAPER_USE_BULLET_PHYSICS=OFF
- name: Build
run: cmake --build build --config ${{ matrix.cmake_build_type }}
- name: Test
run: ctest --test-dir build -C ${{ matrix.cmake_build_type }} --output-on-failure