Skip to content

Weekly

Weekly #311

Workflow file for this run

# Copyright (c) 2023 Carsten Rudolph
name: Weekly
on:
workflow_dispatch:
inputs:
uploadBuildArtifacts:
description: 'Upload Build Artifacts'
required: true
default: 'false'
schedule:
- cron: '1 0 * * 1' # Run every monday night at 00:01 AM (UTC).
env:
vulkanSdkVersion: '1.3.268.0'
jobs:
job:
name: windows-latest-weekly
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
profile: [ windows-x64, windows-x86 ]
include:
- profile: windows-x64
triplet: x64-windows
configuration: windows-msvc-x64-release
architecture: x64
- profile: windows-x86
triplet: x86-windows
configuration: windows-msvc-x86-release
architecture: x86
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}-rel
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: Upload build artifacts
if: ${{ github.event.inputs.uploadBuildArtifacts == 'true' }}
uses: actions/upload-artifact@v3
with:
name: LiteFX-${{ matrix.triplet }}-build
path: '${{ github.workspace }}/out/build/${{ matrix.configuration }}'
- name: Install with CMake
run: |
Set-Location '${{ github.workspace }}/out/build/${{ matrix.configuration }}'
cmake --install .
- name: Upload install artifacts
uses: actions/upload-artifact@v3
with:
name: LiteFX-${{ matrix.triplet }}-install
path: '${{ github.workspace }}/out/install/${{ matrix.configuration }}'