@@ -17,13 +17,20 @@ jobs:
1717 uses : actions/checkout@v6
1818 with :
1919 submodules : recursive
20- fetch-depth : 0
20+ fetch-depth : 1
2121
2222 - name : Install .NET 10.0.x
2323 uses : actions/setup-dotnet@v5
2424 with :
2525 dotnet-version : " 10.0.x"
2626
27+ - name : Cache NuGet packages
28+ uses : actions/cache@v5
29+ with :
30+ path : ~/.nuget/packages
31+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
32+ restore-keys : ${{ runner.os }}-nuget-
33+
2734 - name : Restore Tools
2835 run : dotnet tool restore
2936
@@ -87,13 +94,20 @@ jobs:
8794 uses : actions/checkout@v6
8895 with :
8996 submodules : recursive
90- fetch-depth : 0
97+ fetch-depth : 1
9198
9299 - name : Install .NET 10.0.x
93100 uses : actions/setup-dotnet@v5
94101 with :
95102 dotnet-version : " 10.0.x"
96103
104+ - name : Cache NuGet packages
105+ uses : actions/cache@v5
106+ with :
107+ path : ~/.nuget/packages
108+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
109+ restore-keys : ${{ runner.os }}-nuget-
110+
97111 - name : Compile
98112 run : dotnet build -c Debug -warnaserror osu.Desktop.slnf
99113
@@ -158,7 +172,7 @@ jobs:
158172 uses : actions/checkout@v6
159173 with :
160174 submodules : recursive
161- fetch-depth : 0
175+ fetch-depth : 1
162176
163177 - name : Setup JDK 11
164178 uses : actions/setup-java@v5
@@ -171,6 +185,13 @@ jobs:
171185 with :
172186 dotnet-version : " 10.0.x"
173187
188+ - name : Cache NuGet packages
189+ uses : actions/cache@v5
190+ with :
191+ path : ~/.nuget/packages
192+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
193+ restore-keys : ${{ runner.os }}-nuget-
194+
174195 - name : Install .NET workloads
175196 run : dotnet workload install android
176197
@@ -186,12 +207,20 @@ jobs:
186207 uses : actions/checkout@v6
187208 with :
188209 submodules : recursive
189- fetch-depth : 0
210+ fetch-depth : 1
190211
191212 - name : Install .NET 10.0.x
192213 uses : actions/setup-dotnet@v5
193214 with :
194215 dotnet-version : " 10.0.x"
216+
217+ - name : Cache NuGet packages
218+ uses : actions/cache@v5
219+ with :
220+ path : ~/.nuget/packages
221+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
222+ restore-keys : ${{ runner.os }}-nuget-
223+
195224 - name : Set Xcode version
196225 run : sudo xcode-select -s /Applications/Xcode_26.3.app
197226
0 commit comments