-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (34 loc) · 1.25 KB
/
release-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
# This workflow build the release version of AutoTx.
# It uses the Github runner `windows-2019`, which still supports .Net framework 4
# according to this page:
# https://github.com/orgs/community/discussions/25253
name: .NET Core Desktop
on:
[push]
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
jobs:
build:
strategy:
matrix:
# configuration: [Debug, Release] # commented this for the moment, because below msbuild is called with "Release" config
configuration: [Debug]
runs-on: windows-2019 # this is the last Github runner VM that supports .Net Framework 2019
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet.exe for use with actions
uses: NuGet/[email protected]
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: Restore Packages
run: nuget restore AutoTx.sln
- name: Build solution
run: msbuild AutoTx.sln -t:rebuild -property:Configuration=Release
# msbuild AutoTx.sln /t:Build /p:Configuration=Release <- from the