Skip to content

Commit e46fff5

Browse files
committed
ci: try msbuild
1 parent a97dc18 commit e46fff5

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,48 @@ jobs:
219219
path: integration-test
220220

221221

222+
msbuild:
223+
needs: build-sentry-native
224+
name: MSBuild
225+
runs-on: windows-latest
226+
227+
steps:
228+
- name: Checkout
229+
uses: actions/checkout@v4
230+
with:
231+
submodules: recursive
232+
233+
- name: Download sentry-native (Windows)
234+
uses: actions/cache/restore@v4
235+
with:
236+
path: src/Sentry/Platforms/Native/sentry-native
237+
key: sentry-native-Windows-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
238+
fail-on-cache-miss: true
239+
enableCrossOsArchive: true
240+
241+
- name: Setup Environment
242+
uses: ./.github/actions/environment
243+
244+
- name: Build Native Dependencies
245+
uses: ./.github/actions/buildnative
246+
247+
- name: Add MSBuild to PATH
248+
uses: microsoft/setup-msbuild@v2
249+
250+
- name: Run MSBuild
251+
id: msbuild
252+
run: msbuild Sentry-CI-Build-Windows.slnf -p:Configuration=Release --nologo -v:minimal -flp:logfile=msbuild.log -p:CopyLocalLockFileAssemblies=true -bl:msbuild.binlog
253+
254+
- name: Upload MSBuild logs
255+
if: ${{ steps.msbuild.outcome != 'skipped' }}
256+
uses: actions/upload-artifact@v4
257+
with:
258+
name: ${{ matrix.target || runner.os }}-msbuild-logs
259+
path: |
260+
msbuild.log
261+
msbuild.binlog
262+
263+
222264
trim-analysis:
223265
needs: build-sentry-native
224266
name: Trim analysis

0 commit comments

Comments
 (0)