Skip to content

Commit 7383ed2

Browse files
committed
Restore modules/sentry-cocoa Git submodule
This reverts "Use pre-built version of sentry-cocoa SDK (#3727)" commit d179ec9 and restores the modules/sentry-cocoa Git module checked out at: getsentry/sentry-cocoa#6193
1 parent 03721c1 commit 7383ed2

File tree

14 files changed

+46
-73
lines changed

14 files changed

+46
-73
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build Native Dependencies
2+
description: Builds Sentry Cocoa SDK with custom Carthage
3+
runs:
4+
using: composite
5+
6+
steps:
7+
- name: Cache Sentry Cocoa SDK
8+
id: cache-sentry-cocoa
9+
uses: actions/cache@v3
10+
with:
11+
path: modules/sentry-cocoa/Carthage
12+
key: sentry-cocoa-${{ hashFiles('scripts/build-sentry-cocoa.sh') }}-${{ hashFiles('.git/modules/modules/sentry-cocoa/HEAD') }}
13+
14+
- name: Build Sentry Cocoa SDK
15+
if: ${{ steps.cache-sentry-cocoa.outputs.cache-hit != 'true' }}
16+
shell: bash
17+
run: scripts/build-sentry-cocoa.sh

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ jobs:
204204
if: ${{ !matrix.container }}
205205
uses: ./.github/actions/buildnative
206206

207+
- name: Build Cocoa SDK
208+
if: runner.os == 'macOS'
209+
uses: ./.github/actions/buildcocoasdk
210+
207211
- name: Restore .NET Dependencies
208212
run: dotnet restore ${{ matrix.slnf }} --nologo
209213

.github/workflows/device-tests-ios.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
with:
2828
submodules: recursive
2929

30+
- name: Build Cocoa SDK
31+
uses: ./.github/actions/buildcocoasdk
32+
3033
- name: Setup Environment
3134
uses: ./.github/actions/environment
3235

.github/workflows/update-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
include:
1717
- name: Cocoa SDK
18-
path: modules/sentry-cocoa.properties
18+
path: modules/sentry-cocoa
1919
- name: Java SDK
2020
path: scripts/update-java.ps1
2121
- name: Native SDK

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ test/**/*.apk
2828
*.log
2929
.sentry-native
3030
**/EnvironmentVariables.g.cs
31-
32-
# Download cache for Cocoa SDK
33-
modules/sentry-cocoa

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[submodule "modules/Ben.Demystifier"]
22
path = modules/Ben.Demystifier
33
url = https://github.com/getsentry/Ben.Demystifier
4+
[submodule "modules/sentry-cocoa"]
5+
path = modules/sentry-cocoa
6+
url = https://github.com/getsentry/sentry-cocoa.git
47
[submodule "modules/perfview"]
58
path = modules/perfview
69
url = https://github.com/getsentry/perfview.git

Sentry.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ EndProject
156156
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SingleFileTestApp", "test\SingleFileTestApp\SingleFileTestApp.csproj", "{162A1CAE-ACEE-45CA-A6D0-7702ADE4D3DE}"
157157
EndProject
158158
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{A3CCA27E-4DF8-479D-833C-CAA0950715AA}"
159-
ProjectSection(SolutionItems) = preProject
160-
modules\sentry-cocoa.properties = modules\sentry-cocoa.properties
161-
EndProjectSection
162159
EndProject
163160
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TraceEvent", "modules\perfview\src\TraceEvent\TraceEvent.csproj", "{67269916-C417-4CEE-BD7D-CA66C3830AEE}"
164161
EndProject

modules/sentry-cocoa

Submodule sentry-cocoa added at 50699cb

modules/sentry-cocoa.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

scripts/build-sentry-cocoa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ echo "::endgroup::"
5454

5555
# Copy headers - used for generating bindings
5656
mkdir Carthage/Headers
57-
find Carthage/Build-ios/Sentry.xcframework/ios-arm64 -name '*.h' -exec cp {} Carthage/Headers \;
57+
find Carthage/Build-ios/Sentry.xcframework/ios-arm64_arm64e -name '*.h' -exec cp {} Carthage/Headers \;
5858

5959
# Remove anything we don't want to bundle in the nuget package.
6060
find Carthage/Build* \( -name Headers -o -name PrivateHeaders -o -name Modules \) -exec rm -rf {} +

0 commit comments

Comments
 (0)