forked from getsentry/sentry-native
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.72 KB
/
bcny-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- arch: 'amd64'
platform: 'x64'
- arch: 'arm64'
platform: 'ARM64'
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: compnerd/gha-setup-vsdevenv@main
with:
host_arch: amd64
arch: ${{ matrix.arch }}
- name: Workaround for ARM64
if: matrix.arch == 'arm64'
run: git submodule update --remote third_party/zlib
working-directory: external/crashpad
- name: Configure Sentry
run: >
cmake -B out `
-D CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=10.0.19041.0 `
-G "Visual Studio 17 2022" `
-A ${{ matrix.platform }} `
-D CMAKE_SYSTEM_NAME=Windows `
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }} `
- name: Build Sentry
run: cmake --build out --config Release
- name: Stage Sentry
run: |
New-Item -ItemType Directory -Path sentry-native\bin\win64 -Force | Out-Null
New-Item -ItemType Directory -Path sentry-native\include -Force | Out-Null
New-Item -ItemType Directory -Path sentry-native\lib\win64 -Force | Out-Null
Copy-Item include\sentry.h sentry-native\include\
Copy-Item out\Release\sentry.dll sentry-native\bin\win64\
Copy-Item out\Release\sentry.lib sentry-native\lib\win64\
- uses: actions/upload-artifact@v3
with:
name: sentry-native-windows-${{ matrix.arch }}
path: sentry-native