-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.28 KB
/
dotnetcore.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
name: .NET Core (build pull request)
on: [pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
BUILD_RERUN_COUNT: ${{ github.run_attempt }}
steps:
- uses: actions/checkout@main
- name: Install latest .NET SDK
uses: Elskom/setup-latest-dotnet@main
with:
SDK_VERSION: '8.0.100'
RUNTIME_VERSIONS: ''
- name: Restore, Build, and pack
uses: Elskom/build-dotnet@main
with:
RESTORE: false
- name: Clean up temp installer files.
run: |
del artifacts/packages/Release/Shipping/*.wixpdb
del artifacts/packages/Release/Shipping/*-runtime-*.*
del artifacts/packages/Release/Shipping/*-targeting-pack-*.*
shell: pwsh
- name: Upload artifacts
uses: actions/upload-artifact@main
with:
name: Shipping-${{ runner.os }}
path: artifacts/packages/Release/Shipping/*
- name: Upload binlog on failure.
uses: actions/upload-artifact@main
if: ${{ failure() }}
with:
name: msbuild.binlog
path: msbuild.binlog