Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

removed required vulkan package for mtl cmake #44

removed required vulkan package for mtl cmake

removed required vulkan package for mtl cmake #44

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 ..
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_vk:
name: "[Apple clang] macOS kgfx_vk"
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install MoltenVK
run: brew install molten-vk vulkan-loader vulkan-headers vulkan-validationlayers vulkan-extensionlayer vulkan-utility-libraries
- 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