Testing CI (1) #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build code on Linux | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened] | ||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cxx: g++-12 | ||
Check failure on line 14 in .github/workflows/linux.yaml
|
||
build_type: Debug | ||
#cxx: [g++-12, clang++-15] | ||
#build_type: [Debug, Release] | ||
include: | ||
- cxx: g++-12 | ||
install: sudo apt install g++-12 | ||
#- cxx: clang++-15 | ||
# cxxflags: -stdlib=libc++ | ||
# install: sudo apt install clang-15 libc++-15-dev libc++abi-15-dev | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create Build Environment | ||
run: | | ||
sudo apt update | ||
${{matrix.install}} | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
- name: Prepare Vulkan SDK | ||
shell: bash | ||
run: | | ||
curl -LS -o vulkansdk.tar.xz https://sdk.lunarg.com/sdk/download/1.4.309.0/linux/vulkansdk-linux-x86_64-1.4.309.0.tar.xz | ||
mkdir -p vulkan_sdk | ||
tar xf vulkansdk.tar.xz -C "vulkan_sdk" | ||
rm -rf vulkansdk.tar.xz | ||
- name: Configure | ||
working-directory: ${{runner.workspace}}/build | ||
env: | ||
CXX: ${{matrix.cxx}} | ||
CXXFLAGS: ${{matrix.cxxflags}} | ||
run: | | ||
cmake -DCPM_SOURCE_CACHE=~/cpm-cache \ | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||
-DVMA_BUILD_SAMPLES=YES \ | ||
$GITHUB_WORKSPACE | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
threads=`nproc` | ||
cmake --build . --target VmaCompilationTest --config ${{matrix.build_type}} --parallel $threads |