-
Notifications
You must be signed in to change notification settings - Fork 136
54 lines (41 loc) · 1.53 KB
/
workflow-build-wtl-cache.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
name: Reusable - Build/Upload WTL cached
# TODO later test and lint
# TODO test building library dependencies (the prebuilt stuff)
# GH Action Reusable Workflow -- https://docs.github.com/en/actions/using-workflows/reusing-workflows
on:
workflow_call:
inputs:
platform-arch:
required: true
type: string
build-config:
required: true
type: string
# NOTE: This workflow may not be used in the future, but kept around for historical
# reasons (might need to use this cache routine in the future for other libs),
# or in case it is preferred to use this if the other breaks
#
# Currently this is used as the process for Debug releases
jobs:
build:
# if windows-latest, might not find VS 2019
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: setup-msbuild
# https://github.com/marketplace/actions/setup-msbuild
uses: microsoft/setup-msbuild@v1.1
with:
# Fixed on Visual Studio 2019 -- https://docs.microsoft.com/en-us/visualstudio/releases/2019/history
vs-version: '[16.0,17.0)'
msbuild-architecture: ${{ inputs.platform-arch }}
- uses: ./.github/actions/setup-wix
- uses: ./.github/actions/wtl-cache
- uses: ./.github/actions/build-solution
with:
platform-arch: ${{ inputs.platform-arch }}
build-config: ${{ inputs.build-config }}
- uses: ./.github/actions/upload-some-artifacts
with:
platform-arch: ${{ inputs.platform-arch }}
build-config: ${{ inputs.build-config }}