This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
98 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- redesign | ||
pull_request: | ||
branches: | ||
- redesign | ||
|
||
jobs: | ||
windows_build_vulkan: | ||
name: "[MSVC] Windows kgfx_vk" | ||
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_vk | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake --build . --config Release --target kgfx_vk | ||
windows_build_mingw_vulkan: | ||
name: "[MinGW GCC] Windows kgfx_vk" | ||
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_vk | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -G "MSYS Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. | ||
cmake --build . --config Release --target kgfx_vk | ||
linux_build_gcc_vulkan: | ||
name: "[GCC] Linux kgfx_vk" | ||
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_vk | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. | ||
cmake --build . --target kgfx_vk | ||
linux_build_clang_vulkan: | ||
name: "[clang] Linux kgfx_vk" | ||
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_vk | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. | ||
cmake --build . --target kgfx_vk | ||
macos_build_metal: | ||
name: "[Apple clang] macOS kgfx_mtl" | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Configure and build kgfx_mtl | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. | ||
cmake --build . --target kgfx_mtl |