Skip to content

Commit e7f30de

Browse files
committed
CI perf
1 parent 03b7435 commit e7f30de

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/pull-requests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
permissions:
1216
contents: read
1317
id-token: write
@@ -24,6 +28,13 @@ jobs:
2428

2529
steps:
2630
- uses: actions/checkout@v6
31+
- name: Cache .NET SDK
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.dotnet
35+
key: ${{ runner.os }}-dotnet-sdk-${{ hashFiles('global.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-dotnet-sdk-
2738
- name: Cache NuGet packages
2839
uses: actions/cache@v4
2940
with:

.github/workflows/push-main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
build:
1014

@@ -16,6 +20,13 @@ jobs:
1620

1721
steps:
1822
- uses: actions/checkout@v6
23+
- name: Cache .NET SDK
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.dotnet
27+
key: ${{ runner.os }}-dotnet-sdk-${{ hashFiles('global.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-dotnet-sdk-
1930
- name: Cache NuGet packages
2031
uses: actions/cache@v4
2132
with:

0 commit comments

Comments
 (0)