Improve descriptor set handling. #209
Workflow file for this run
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
# Copyright (c) 2023 Carsten Rudolph | |
name: Verify Build | |
on: | |
workflow_dispatch: | |
inputs: | |
uploadArtifacts: | |
description: 'Upload Artifacts' | |
required: true | |
default: 'false' | |
signArtifacts: | |
description: 'Attempt Code Sign' | |
required: true | |
default: 'false' | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
env: | |
vulkanSdkVersion: '1.3.239.0' # Lowest version that ships with DXC is 1.2.148.0 | |
jobs: | |
job: | |
name: ${{ matrix.os }}-ci | |
runs-on: ${{ matrix.os }} | |
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-latest ] | |
include: | |
- os: windows-latest | |
triplet: x64-windows | |
configuration: windows-x64-release | |
architecture: x64 | |
steps: | |
- name: Checking out sources | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Setup build environment | |
id: setup-environment | |
run: | | |
echo "VCPKG_FEATURE_FLAGS=manifests" >> $env:GITHUB_ENV | |
- name: Setup Vulkan SDK | |
uses: humbletim/install-vulkan-sdk@v1.1.1 | |
with: | |
version: ${{ env.vulkanSdkVersion }} | |
cache: true | |
- name: Retrieve latest CMake build | |
uses: lukka/get-cmake@latest | |
- name: Restore or build vcpkg | |
uses: lukka/run-vcpkg@v10 | |
with: | |
vcpkgDirectory: '${{ github.workspace }}/src/Modules/vcpkg' | |
vcpkgJsonGlob: '**/vcpkg.json' | |
- name: Build with CMake and Ninja | |
id: build-with-cmake | |
uses: lukka/run-cmake@v10 | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/src/CMakeLists.txt' | |
configurePreset: '${{ matrix.configuration }}' | |
buildPreset: '${{ matrix.configuration }}' | |
- name: Install with CMake | |
run: | | |
Set-Location '${{ github.workspace }}/out/build/${{ matrix.configuration }}' | |
cmake --install . | |
- name: Sign binaries | |
if: ${{ github.event.inputs.signArtifacts == 'true' }} | |
uses: dlemstra/code-sign-action@v1 | |
with: | |
certificate: '${{ secrets.SIGN_CERTIFICATE_BASE64 }}' | |
password: '${{ secrets.SIGN_CERTIFICATE_PASSWORD }}' | |
folder: '${{ github.workspace }}/out/install/' | |
recursive: true | |
- name: Upload install artifacts | |
if: ${{ github.event.inputs.uploadArtifacts == 'true' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: LiteFX-${{ matrix.triplet }}-install | |
path: '${{ github.workspace }}/out/install/${{ matrix.configuration }}' |