-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (41 loc) · 1.53 KB
/
dotnet-core.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
47
48
49
50
name: .NET CI
on: [push, pull_request]
jobs:
build:
name: .Net ${{ matrix.framework }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
framework: ['7.0']
include:
- os: ubuntu-20.04
target: linux-x64
- os: windows-latest
target: win-x64
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- if: matrix.os == 'ubuntu-20.04'
name: Install Linux packages
run: |
sudo apt-get update
sudo apt-get install -y build-essential libkrb5-dev make gcc libc-dev cmake llvm
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.framework }}
- name: Install dependencies for ${{ matrix.target }}
run: dotnet restore -r ${{ matrix.target }}
- name: Build ${{ matrix.target }}
run: dotnet publish "LocalAdmin V2.csproj" -r ${{ matrix.target }} -c release -o "${{ github.workspace }}/builds/${{ matrix.framework }}/${{ matrix.target }}"
- name: Upload ${{ matrix.target }} Build
uses: actions/upload-artifact@v3
with:
name: LocalAdmin-${{ matrix.target }}-${{ matrix.framework }}
path: ${{ github.workspace }}/builds/${{ matrix.framework }}/${{ matrix.target }}
- name: Upload ${{ matrix.target }} Build to bundle
uses: actions/upload-artifact@v3
with:
name: LocalAdmin-all-${{ matrix.framework }}
path: ${{ github.workspace }}/builds/${{ matrix.framework }}