-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (56 loc) · 1.45 KB
/
dotnet-releaser.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
53
54
55
56
57
58
59
name: CI/CD
on:
push:
paths-ignore:
- 'src/FastCache.Sanbox/**'
- 'examples/**'
pull_request:
jobs:
all-in-one:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build, Test, Pack, Publish
shell: bash
env:
FASTCACHE_CONSIDER_GC: true
FASTCACHE_GC_THRESHOLD: 1024
FASTCACHE_PARALLEL_EVICTION_THRESHOLD: 2048
FASTCACHE_QUICKLIST_EVICTION_INTERVAL: 00:00:01
run: |
dotnet tool install -g dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" dotnet-releaser.toml
tests-extra-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
8.0.x
- name: Build, Test, Pack, Publish
shell: pwsh
env:
FASTCACHE_CONSIDER_GC: true
FASTCACHE_GC_THRESHOLD: 1024
FASTCACHE_PARALLEL_EVICTION_THRESHOLD: 2048
FASTCACHE_QUICKLIST_EVICTION_INTERVAL: 00:00:01
run: |
dotnet test -c release