Skip to content

Commit 8e3b463

Browse files
authored
CI perf (#1021)
1 parent c89036e commit 8e3b463

2 files changed

Lines changed: 21 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
permissions:
912
id-token: write
1013
contents: write
@@ -20,6 +23,13 @@ jobs:
2023

2124
steps:
2225
- uses: actions/checkout@v6
26+
- name: Cache .NET SDK
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.dotnet
30+
key: ${{ runner.os }}-dotnet-sdk-${{ hashFiles('global.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-dotnet-sdk-
2333
- name: Cache NuGet packages
2434
uses: actions/cache@v4
2535
with:

0 commit comments

Comments
 (0)