-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (59 loc) · 1.93 KB
/
build_packages.yml
File metadata and controls
74 lines (59 loc) · 1.93 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
70
71
72
73
74
name: Build release archives
on: [push, pull_request]
# on:
# push:
# branches: [ $default-branch ]
# pull_request:
# branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test --runtime linux-x64
- name: Build windows x64 version
run: dotnet publish -c Release -r win10-x64
- name: Build linux x64 version
run: dotnet publish -c Release -r linux-x64
- name: Build macos x64 version
run: dotnet publish -c Release -r osx.10.15-x64
- name: Add executables to windows x64 version package
uses: actions/upload-artifact@v2
with:
name: win10-x64
path: src/Ccdc.CommitHooks.CommitHookExe/bin/Release/net5.0/win10-x64/publish/*
- name: Add common scripts to windows x64 version package
uses: actions/upload-artifact@v2
with:
name: win10-x64
path: main/*
- name: Add executables to linux x64 version package
uses: actions/upload-artifact@v2
with:
name: linux-x64
path: src/Ccdc.CommitHooks.CommitHookExe/bin/Release/net5.0/linux-x64/publish/*
- name: Add common scripts to linux x64 version package
uses: actions/upload-artifact@v2
with:
name: linux-x64
path: main/*
- name: Add executables to macos x64 version package
uses: actions/upload-artifact@v2
with:
name: macos-x64
path: src/Ccdc.CommitHooks.CommitHookExe/bin/Release/net5.0/osx.10.15-x64/publish/*
- name: Add common scripts to macos x64 version package
uses: actions/upload-artifact@v2
with:
name: macos-x64
path: main/*