Add Vulkan allocator class #98
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" | |
on: [ push ] | |
jobs: | |
macos: | |
runs-on: macos-latest | |
if: contains(github.event.head_commit.message, '[skip-ci]') == false | |
env: | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
VCPKG_TARGET_TRIPLET: x64-osx | |
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}/vcpkg/bincache | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install system dependencies | |
run: | | |
brew update | |
brew install cmake | |
brew install ninja | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Restore Vcpkg | |
uses: actions/cache@v3 | |
id: restore-vcpkg | |
with: | |
path: | | |
${{env.VCPKG_ROOT}} | |
!${{env.VCPKG_ROOT}}/buildtrees | |
!${{env.VCPKG_ROOT}}/packages | |
!${{env.VCPKG_ROOT}}/downloads | |
!${{env.VCPKG_ROOT}}/installed | |
key: glow-macos-vcpkg-${{hashFiles('vcpkg.json')}} | |
- name: Install Vcpkg | |
if: steps.restore-vcpkg.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
./vcpkg/bootstrap-vcpkg.sh -disableMetrics | |
mkdir -p ${{env.VCPKG_DEFAULT_BINARY_CACHE}} | |
- name: Generate build files | |
run: | | |
mkdir build && cd build | |
cmake .. -GNinja \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TARGET_TRIPLET}} | |
- name: Build | |
run: ninja -C build | |
linux: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[skip-ci]') == false | |
env: | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}/vcpkg/bincache | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install system dependencies | |
run: | | |
sudo apt update | |
sudo apt install cmake ninja-build libgl-dev | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Restore Vcpkg | |
uses: actions/cache@v3 | |
id: restore-vcpkg | |
with: | |
path: | | |
${{env.VCPKG_ROOT}} | |
!${{env.VCPKG_ROOT}}/buildtrees | |
!${{env.VCPKG_ROOT}}/packages | |
!${{env.VCPKG_ROOT}}/downloads | |
!${{env.VCPKG_ROOT}}/installed | |
key: glow-ubuntu-vcpkg-${{hashFiles('vcpkg.json')}} | |
- name: Install Vcpkg | |
if: steps.restore-vcpkg.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
./vcpkg/bootstrap-vcpkg.sh -disableMetrics | |
mkdir -p ${{env.VCPKG_DEFAULT_BINARY_CACHE}} | |
- name: Generate build files | |
run: | | |
mkdir build && cd build | |
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug | |
- name: Build | |
run: ninja -C build | |
windows: | |
runs-on: windows-latest | |
if: contains(github.event.head_commit.message, '[skip-ci]') == false | |
env: | |
VCPKG_ROOT: ${{github.workspace}}\vcpkg | |
VCPKG_TARGET_TRIPLET: x64-windows-static-md | |
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}\vcpkg\bincache | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: ilammy/msvc-dev-cmd@v1.11.0 | |
- uses: lukka/get-cmake@latest | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.204.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Restore Vcpkg | |
uses: actions/cache@v3 | |
id: restore-vcpkg | |
with: | |
path: | | |
${{env.VCPKG_ROOT}} | |
!${{env.VCPKG_ROOT}}\buildtrees | |
!${{env.VCPKG_ROOT}}\packages | |
!${{env.VCPKG_ROOT}}\downloads | |
!${{env.VCPKG_ROOT}}\installed | |
key: glow-windows-vcpkg-${{hashFiles('vcpkg.json')}} | |
- name: Install Vcpkg | |
if: steps.restore-vcpkg.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
.\vcpkg\bootstrap-vcpkg.bat -disableMetrics | |
mkdir -p ${{env.VCPKG_DEFAULT_BINARY_CACHE}} | |
- name: Generate build files | |
run: | | |
mkdir build | |
cd build | |
cmake .. -GNinja ` | |
-DCMAKE_BUILD_TYPE=Debug ` | |
-DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TARGET_TRIPLET}} | |
- name: Build | |
run: ninja -C build |