-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (48 loc) · 1.53 KB
/
win.yaml
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
name: Build with VS Studio
on:
push:
branches:
- master
tags:
- uuu*
pull_request:
types:
- opened
- synchronize
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
configuration: ['Debug', 'Release']
platform: ['x86', 'x64']
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Set up Visual Studio
uses: microsoft/setup-msbuild@v1.1
- name: Build static solution
run: |
git fetch --tags --force # Retrieve annotated tags. #issue 290
msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu-static-link.sln
- name: Upload Build Artifacts
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
uses: actions/upload-artifact@v3
with:
name: uuu.exe
path: msvc/x64/Release/uuu.exe
- name: Create or Update Release
if: matrix.configuration == 'Release' && matrix.platform == 'x64' && github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
tag: ${{ github.ref_name }}
commit: ${{ github.sha }}
allowUpdates: true
prerelease: true
artifacts: msvc/x64/Release/uuu.exe
- name: Build dynamic solution
run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu.sln