Skip to content

Update GitHub Actions workflow for improved build process #70

Update GitHub Actions workflow for improved build process

Update GitHub Actions workflow for improved build process #70

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
VULKAN_SDK: C:\VulkanSDK\
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install Vulkan SDK
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.4.304.0/windows/VulkanSDK-1.4.304.0-Installer.exe" -OutFile VulkanSDK.exe
echo Downloaded
.\VulkanSDK.exe --root C:\VulkanSDK --accept-licenses --default-answer --confirm-command install
- name: Configure CMake
run: |
cmake . --preset github
- name: Build
run: |
cmake --build build/github --config Release -j 8