-
Notifications
You must be signed in to change notification settings - Fork 7
82 lines (69 loc) · 2.39 KB
/
weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# 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.239.0' # Lowest version that ships with DXC is 1.2.148.0
jobs:
job:
name: ${{ matrix.os }}-weekly
runs-on: ${{ matrix.os }}
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: 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 }}'