This repository has been archived by the owner on Oct 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (83 loc) · 2.84 KB
/
build.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build single exes
on: [push]
jobs:
binary-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/[email protected]
with:
dotnet-version: "3.0.100"
- name: build
run: |
mkdir $env:HOME\bin-x86;
mkdir $env:HOME\bin-x64;
mkdir $env:HOME\bin-x86-untrimmed;
mkdir $env:HOME\bin-x64-untrimmed;
mkdir $env:HOME\bin-x86-unpacked;
mkdir $env:HOME\bin-x64-unpacked;
cd ConsoleAppUsingLibgit;
dotnet restore;
dotnet publish -r win-x86 -c Release -o $env:HOME\bin-x86\ ConsoleAppUsingLibgit.csproj /p:PublishSingleFile=true /p:PublishTrimmed=true;
dotnet publish -r win-x64 -c Release -o $env:HOME\bin-x64\ ConsoleAppUsingLibgit.csproj /p:PublishSingleFile=true /p:PublishTrimmed=true;
dotnet publish -r win-x86 -c Release -o $env:HOME\bin-x86-untrimmed\ ConsoleAppUsingLibgit.csproj /p:PublishSingleFile=true;
dotnet publish -r win-x64 -c Release -o $env:HOME\bin-x64-untrimmed\ ConsoleAppUsingLibgit.csproj /p:PublishSingleFile=true;
dotnet publish -r win-x86 -c Release -o $env:HOME\bin-x86-unpacked\ ConsoleAppUsingLibgit.csproj;
dotnet publish -r win-x64 -c Release -o $env:HOME\bin-x64-unpacked\ ConsoleAppUsingLibgit.csproj;
shell: pwsh
# Upload
- uses: actions/upload-artifact@master
with:
name: bin-x86
path: D:\bin-x86
- uses: actions/upload-artifact@master
with:
name: bin-x64
path: D:\bin-x64
- uses: actions/upload-artifact@master
with:
name: bin-x86-untrimmed
path: D:\bin-x86-untrimmed
- uses: actions/upload-artifact@master
with:
name: bin-x64-untrimmed
path: D:\bin-x64-untrimmed
- uses: actions/upload-artifact@master
with:
name: bin-x86-unpacked
path: D:\bin-x86-unpacked
- uses: actions/upload-artifact@master
with:
name: bin-x64-unpacked
path: D:\bin-x64-unpacked
# Tests
- name: Test bin-x86
run: |
D:\bin-x86\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true
- name: Test bin-x64
run: |
D:\bin-x64\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true
- name: Test bin-x86-untrimmed
run: |
D:\bin-x86-untrimmed\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true
- name: Test bin-x64-untrimmed
run: |
D:\bin-x64-untrimmed\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true
- name: Test bin-x86-unpacked
run: |
D:\bin-x86-unpacked\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true
- name: Test bin-x64-unpacked
run: |
D:\bin-x64-unpacked\ConsoleAppUsingLibgit.exe
shell: pwsh
continue-on-error: true