Skip to content

Changes? * 30

Changes? * 30 #7

Workflow file for this run

name: 'Build and publish artifacts'
on:
push:
branches: ['master', 'ci-test']
workflow_dispatch:
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: dependencygraph
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
build-and-package:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Set up GitHub Actions cache environment
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 || '');
# https://github.com/actions/runner-images/issues/6376
- name: Set up Vcpkg environment
shell: bash
run: |
echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
# Custom step is required because vcvarsall doesn't persist otherwise. VS2022 is the only option on windows-2022 runners.
- name: Set up VS2022 toolset
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install and set up Vulkan SDK
uses: humbletim/[email protected]
with:
version: latest
cache: false
- name: Build and set up FidelityFX SDK
shell: cmd
run: |
${{ github.workspace }}/dependencies/Build-FFX-SDK.bat
# All variants get built here since I don't want to burn my action minutes on the Vulkan and FFX SDKs
- name: Build dlssg-to-fsr3
shell: pwsh
run: |
${{ github.workspace }}/Make-Release.ps1
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: 'dlssg-to-fsr3-ci-test'
path: |
${{ github.workspace }}/bin/built-packages/*.zip
if-no-files-found: error