-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (55 loc) · 1.36 KB
/
Build.yml
File metadata and controls
69 lines (55 loc) · 1.36 KB
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
61
62
63
64
65
66
67
68
69
name: Build
on:
push:
paths:
- '.github/workflows/Build.yml'
- '**.sln'
- '**.csproj'
- '**.cs'
- 'App.config'
pull_request:
paths:
- '.github/workflows/Build.yml'
- '**.sln'
- '**.csproj'
- '**.cs'
- 'App.config'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
defaults:
run:
shell: bash
jobs:
Framework:
runs-on: windows-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Config
run: echo MSBUILD_EXE="$("/c/Program Files (x86)/Microsoft Visual Studio/Installer/vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild/**/Bin/MSBuild.exe)" >> $GITHUB_ENV
- name: Build
run: |
:
"$MSBUILD_EXE" ScanMsg.sln -p:Configuration=Release -target:ScanMsg
mv ScanMsg/Build/Framework/Release/ScanMsg.exe ScanMsg.exe
- name: Upload
uses: actions/upload-artifact@v2
with:
name: ScanMsg
if-no-files-found: error
retention-days: 30
path: |
ScanMsg.exe
ScanMsg.msg
README.md
LICENSE.md
NET5:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Build
run: |
:
dotnet build --configuration Release ScanMsg/ScanMsg.NET5.csproj