-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.7 KB
/
build.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
name: VS 2022
on:
workflow_dispatch:
pull_request:
schedule:
- cron: 0 4 * * WED
push:
branches:
- main
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
configuration: ["release", "debug"]
platform: ["win32", "x64"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v2
- name: Cache dependencies
uses: actions/cache@v4
with:
path: C:\Users\runneradmin\AppData\Local\vcpkg\archives
key: ${{ runner.os }}-vcpkg-archives-${{ hashFiles('vcpkg.json') }}
- name: Set up vcpkg
run: |
git -C C:\vcpkg fetch
vcpkg version
vcpkg integrate install
- name: Set up MSBuild logger
run: |
Invoke-WebRequest -Uri https://github.com/reupen/msbuild-github-logger/releases/download/v1.0.1/Reupen.MSBuild.GitHubLogger.dll -OutFile "$Env:Temp\Reupen.MSBuild.GitHubLogger.dll"
- name: Build
run: |
msbuild /m '/p:Platform=${{ matrix.platform }};Configuration=${{ matrix.configuration }}' "/logger:$Env:Temp\Reupen.MSBuild.GitHubLogger.dll" vc17\album_list_panel.sln
- uses: actions/upload-artifact@v4
if: matrix.configuration == 'release'
with:
name: Component package (${{ matrix.configuration }}, ${{ matrix.platform }})
path: vc17\release-*\*.fb2k-component
- uses: actions/upload-artifact@v4
if: matrix.configuration == 'release'
with:
name: Symbols for debugging (${{ matrix.configuration }}, ${{ matrix.platform }})
path: vc17\release-*\*.pdb