forked from sylikc/jpegview
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.28 KB
/
workflow-build-wtl-submodule.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
name: Reusable - Build/Upload WTL submod
# 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
jobs:
build:
# if windows-latest, might not find VS 2019
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup msbuild
# https://github.com/marketplace/actions/setup-msbuild
uses: microsoft/[email protected]
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-submodule
- 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 }}