This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
disable dxgi 1.3 debugging with mingw work around #32
This file contains 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: CI/CD | |
on: | |
push: | |
branches: | |
- testing | |
pull_request: | |
branches: | |
- testing | |
jobs: | |
windows_build_d3d12: | |
name: "[MSVC] Windows kgfx_d3d12" | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up MSVC environment | |
uses: microsoft/setup-msbuild@v2 | |
- name: Configure and build kgfx_d3d12 | |
run: | | |
mkdir build | |
cd build | |
cmake -DTARGET_API=d3d12 .. | |
cmake --build . --config Release --target kgfx_d3d12 | |
windows_build_vulkan: | |
name: "[MSVC] Windows kgfx_vulkan" | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up MSVC environment | |
uses: microsoft/setup-msbuild@v2 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: latest | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Configure and build kgfx_vulkan | |
run: | | |
mkdir build | |
cd build | |
cmake -DTARGET_API=vulkan .. | |
cmake --build . --config Release --target kgfx_vulkan | |
windows_build_mingw_vulkan: | |
name: "[MinGW GCC] Windows kgfx_vulkan" | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install MinGW | |
uses: msys2/setup-msys2@v2 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: latest | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Install CMake | |
uses: jwlawson/actions-setup-cmake@v2 | |
with: | |
cmake-version: '3.12.x' | |
- name: Configure and build kgfx_vulkan | |
run: | | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" -DTARGET_API=vulkan -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. | |
cmake --build . --config Release | |
windows_build_mingw_d3d12: | |
name: "[MinGW GCC] Windows kgfx_d3d12" | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install MinGW | |
uses: msys2/setup-msys2@v2 | |
- name: Install CMake | |
uses: jwlawson/actions-setup-cmake@v2 | |
with: | |
cmake-version: '3.12.x' | |
- name: Configure and build kgfx_d3d12 | |
run: | | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" -DTARGET_API=d3d12 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. | |
cmake --build . --config Release | |
linux_build_gcc_vulkan: | |
name: "[GCC] Linux kgfx_vulkan" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Vulkan | |
run: sudo apt-get install -y libvulkan-dev | |
- name: Configure and build kgfx_vulkan | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DTARGET_API=vulkan .. | |
cmake --build . --target kgfx_vulkan | |
linux_build_clang_vulkan: | |
name: "[clang] Linux kgfx_vulkan" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Vulkan | |
run: sudo apt-get install -y libvulkan-dev | |
- name: Configure and build kgfx_vulkan | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DTARGET_API=vulkan .. | |
cmake --build . --target kgfx_vulkan | |
macos_build_metal: | |
name: "[Apple clang] macOS kgfx_metal" | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Configure and build kgfx_metal | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DTARGET_API=metal .. | |
cmake --build . --target kgfx_metal |