forked from jetersen/dotnet.restore.slow.github.action
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.18 KB
/
ci.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
51
52
name: DotNet
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
POWERSHELL_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
## DOTNET_INSTALL_DIR: D:\dotnet
jobs:
build:
runs-on: ${{ matrix.os }}
name: Test
strategy:
matrix:
n: [1,2,3,4,5,6,7,8,9,10]
os: [windows-2019, windows-2022]
cache: [false, true]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache NuGet packages
if: matrix.cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Setup DotNet 8
uses: akv-platform/setup-dotnet@windows-performance
with:
dotnet-version: 8.0.x
- name: DotNet restore
if: ${{ false }}
run: |
dotnet new nugetconfig
dotnet restore -v n