-
Notifications
You must be signed in to change notification settings - Fork 23
53 lines (43 loc) · 1.52 KB
/
main.yml
File metadata and controls
53 lines (43 loc) · 1.52 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
name: MultiAdmin Build
on: [push, pull_request]
jobs:
build:
name: .NET ${{matrix.framework}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-18.04, windows-latest]
framework: ['6.0']
include:
- os: ubuntu-18.04
target: linux-x64
- os: windows-latest
target: win-x64
timeout-minutes: 30
steps:
- uses: actions/checkout@v2.3.4
- if: matrix.os == 'ubuntu-18.04'
name: Install Linux packages
run: |
sudo apt update
sudo apt install -y clang zlib1g-dev libkrb5-dev libtinfo5
- name: Setup .NET
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: ${{matrix.framework}}
- name: Restore for ${{matrix.target}}
run: dotnet restore -r ${{matrix.target}}
- name: Publish for ${{matrix.target}}
run: dotnet publish -r ${{matrix.target}} -c Release -o "${{github.workspace}}/Builds/${{matrix.framework}}/${{matrix.target}}" "MultiAdmin"
- name: Run unit tests
run: dotnet test
- name: Upload ${{matrix.target}} build
uses: actions/upload-artifact@v2.2.2
with:
name: MultiAdmin-${{matrix.target}}-${{matrix.framework}}
path: ${{github.workspace}}/Builds/${{matrix.framework}}/${{matrix.target}}
- name: Upload ${{matrix.target}} build to bundle
uses: actions/upload-artifact@v2.2.2
with:
name: MultiAdmin-all-${{matrix.framework}}
path: ${{github.workspace}}/Builds/${{matrix.framework}}