4848 curl -sSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/.github/alpine/setup-node.sh | sudo bash /dev/stdin
4949
5050 - name : Checkout
51- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
51+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5252
5353 - run : git submodule update --init modules/sentry-native
5454
5858 uses : ./.github/actions/install-zstd
5959
6060 - id : cache
61- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
61+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
6262 with :
6363 path : src/Sentry/Platforms/Native/sentry-native
6464 key : sentry-native-${{ matrix.rid }}-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -121,7 +121,7 @@ jobs:
121121 uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
122122
123123 - name : Checkout
124- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
124+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
125125 with :
126126 submodules : recursive
127127 fetch-depth : 2 # default is 1 and codecov needs > 1
@@ -140,47 +140,47 @@ jobs:
140140
141141 - name : Download sentry-native (linux-x64)
142142 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-x64') }}
143- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
143+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
144144 with :
145145 path : src/Sentry/Platforms/Native/sentry-native
146146 key : sentry-native-linux-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
147147 fail-on-cache-miss : true
148148
149149 - name : Download sentry-native (linux-arm64)
150150 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-arm64') }}
151- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
151+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
152152 with :
153153 path : src/Sentry/Platforms/Native/sentry-native
154154 key : sentry-native-linux-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
155155 fail-on-cache-miss : true
156156
157157 - name : Download sentry-native (linux-musl-x64)
158158 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-musl-x64') }}
159- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
159+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
160160 with :
161161 path : src/Sentry/Platforms/Native/sentry-native
162162 key : sentry-native-linux-musl-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
163163 fail-on-cache-miss : true
164164
165165 - name : Download sentry-native (linux-musl-arm64)
166166 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-musl-arm64') }}
167- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
167+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
168168 with :
169169 path : src/Sentry/Platforms/Native/sentry-native
170170 key : sentry-native-linux-musl-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
171171 fail-on-cache-miss : true
172172
173173 - name : Download sentry-native (macos)
174174 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'macos') }}
175- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
175+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
176176 with :
177177 path : src/Sentry/Platforms/Native/sentry-native
178178 key : sentry-native-macos-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
179179 fail-on-cache-miss : true
180180
181181 - name : Download sentry-native (win-x64)
182182 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'win-x64') }}
183- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
183+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
184184 with :
185185 path : src/Sentry/Platforms/Native/sentry-native
186186 key : sentry-native-win-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -189,7 +189,7 @@ jobs:
189189
190190 - name : Download sentry-native (win-arm64)
191191 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'win-arm64') }}
192- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
192+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
193193 with :
194194 path : src/Sentry/Platforms/Native/sentry-native
195195 key : sentry-native-win-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -209,25 +209,40 @@ jobs:
209209
210210 - name : Upload build logs
211211 if : ${{ always() }}
212- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
212+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
213213 with :
214214 name : ${{ matrix.rid }}-build-logs
215215 path : |
216216 build.log
217217 build.binlog
218218 if-no-files-found : ignore
219219
220+ - name : Free disk space before tests
221+ if : ${{ contains(matrix.container.image, 'alpine') }}
222+ run : |
223+ echo "Disk usage before cleanup:"
224+ df -h
225+
226+ # Remove build binlog (can be large, often 100MB+)
227+ rm -f build.binlog || true
228+
229+ # Clean up NuGet HTTP cache (not the packages cache which is needed for pack)
230+ dotnet nuget locals http-cache --clear || true
231+
232+ echo "Disk usage after cleanup:"
233+ df -h
234+
220235 - name : Test
221236 run : dotnet test ${{ matrix.slnf }} -c Release --no-build --nologo -l GitHubActions -l "trx;LogFilePrefix=testresults_${{ runner.os }}" --collect "XPlat Code Coverage"
222237
223238 - name : Upload code coverage
224- uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
239+ uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
225240 with :
226241 token : ${{ secrets.CODECOV_TOKEN }}
227242
228243 - name : Upload build and test outputs
229244 if : failure()
230- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
245+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
231246 with :
232247 name : ${{ matrix.rid }}-verify-test-results
233248 path : " **/*.received.*"
@@ -237,7 +252,7 @@ jobs:
237252
238253 - name : Archive NuGet Packages
239254 if : env.CI_PUBLISHING_BUILD == 'true'
240- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
255+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
241256 with :
242257 name : ${{ github.sha }}
243258 if-no-files-found : error
@@ -247,7 +262,7 @@ jobs:
247262
248263 - name : Sparse checkout
249264 if : env.CI_PUBLISHING_BUILD == 'true'
250- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
265+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
251266 with :
252267 # We only check out what is absolutely necessary to reduce a chance of local files impacting
253268 # integration tests (nuget.config etc.)... But we need the root Directory.Build.props calculate
@@ -265,8 +280,10 @@ jobs:
265280 path : src
266281
267282 - name : Integration test
268- # # Note that when upgsading .NET versions, linux-musl may need special handling... see comments below
283+ # # Note that when upgrading .NET versions, linux-musl may need special handling... see comments below
269284# if: ${{ (matrix.rid != 'linux-musl-x64') && (matrix.rid != 'linux-musl-arm64') }}
285+ # TODO: Re-enable once we have resolved https://github.com/getsentry/sentry-dotnet/issues/4788
286+ if : ${{ (matrix.rid != 'linux-musl-x64') }}
270287 uses : getsentry/github-workflows/sentry-cli/integration-test/@a5e409bd5bad4c295201cdcfe862b17c50b29ab7 # v2.14.1
271288 with :
272289 path : integration-test
@@ -289,12 +306,12 @@ jobs:
289306
290307 steps :
291308 - name : Checkout
292- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
309+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
293310 with :
294311 submodules : recursive
295312
296313 - name : Download sentry-native (win-x64)
297- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
314+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
298315 with :
299316 path : src/Sentry/Platforms/Native/sentry-native
300317 key : sentry-native-win-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -321,7 +338,7 @@ jobs:
321338
322339 - name : Upload logs
323340 if : ${{ always() }}
324- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
341+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
325342 with :
326343 name : ${{ runner.os }}-msbuild-logs
327344 path : |
@@ -347,7 +364,7 @@ jobs:
347364
348365 steps :
349366 - name : Checkout
350- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
367+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
351368 with :
352369 submodules : recursive
353370
@@ -377,7 +394,7 @@ jobs:
377394
378395 steps :
379396 - name : Checkout
380- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
397+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
381398 with :
382399 submodules : recursive
383400 fetch-depth : 2 # default is 1 and codecov needs > 1
@@ -387,7 +404,7 @@ jobs:
387404 run : echo "CI_PUBLISHING_BUILD=true" >> $GITHUB_ENV
388405
389406 - name : Download sentry-native (macos)
390- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
407+ uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
391408 with :
392409 path : src/Sentry/Platforms/Native/sentry-native
393410 key : sentry-native-macos-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -416,7 +433,7 @@ jobs:
416433 if : ${{ !startsWith(github.ref_name, 'release/') }}
417434
418435 steps :
419- - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
436+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
420437 with :
421438 submodules : recursive
422439
0 commit comments