Skip to content

Commit 712e033

Browse files
committed
Merge remote-tracking branch 'origin/v8.x' into philprime/hotfix/disable-session-replay-ios26
2 parents 2748020 + b66be9b commit 712e033

File tree

150 files changed

+2011
-1031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+2011
-1031
lines changed

.github/actions/prepare-package.swift/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ inputs:
55
description: "Whether the build is a PR"
66
required: true
77
default: "false"
8+
remove-duplicate:
9+
description: "Whether to remove targets that produce duplicate files. These targets cause SPM validation errors."
10+
default: "false"
11+
change-path:
12+
description: "Whether to change the path of the framework"
13+
default: "true"
814
package-file:
915
description: "The package file to prepare"
1016
required: true
@@ -22,7 +28,17 @@ runs:
2228
sed -i '' '/Sentry-Dynamic-WithARM64e/d' $PACKAGE_FILE
2329
sed -i '' '/Sentry-WithoutUIKitOrAppKit-WithARM64e/d' $PACKAGE_FILE
2430
sed -i '' '/^[[:space:]]*\.binaryTarget($/{N;/\n[[:space:]]*),\{0,1\}$/d;}' $PACKAGE_FILE
31+
- name: Remove duplicate target
32+
if: ${{ inputs.remove-duplicate == 'true' }}
33+
shell: bash
34+
env:
35+
PACKAGE_FILE: ${{ inputs.package-file }}
36+
run: |
37+
sed -i '' '/Sentry-Dynamic/d' $PACKAGE_FILE
38+
sed -i '' '/Sentry-WithoutUIKitOrAppKit/d' $PACKAGE_FILE
39+
sed -i '' '/^[[:space:]]*\.binaryTarget($/{N;/\n[[:space:]]*),\{0,1\}$/d;}' $PACKAGE_FILE
2540
- name: Change path of the framework
41+
if: ${{ inputs.change-path == 'true' }}
2642
shell: bash
2743
env:
2844
PACKAGE_FILE: ${{ inputs.package-file }}

.github/workflows/benchmarking.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- v8.x
67

78
pull_request:
89

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- v8.x
67
- release/**
78

89
pull_request:
@@ -98,6 +99,8 @@ jobs:
9899
config: DebugV9
99100
- scheme: iOS-ObjectiveC
100101
config: DebugV9
102+
- scheme: DistributionSample
103+
config: Debug
101104

102105
steps:
103106
- uses: actions/checkout@v5
@@ -129,6 +132,26 @@ jobs:
129132
if: ${{ failure() || cancelled() }}
130133
run: ./scripts/ci-diagnostics.sh
131134

135+
build-distribution:
136+
name: Build the distribution framework
137+
runs-on: macos-15
138+
needs: files-changed
139+
steps:
140+
- uses: actions/checkout@v5
141+
142+
- run: ./scripts/ci-select-xcode.sh 16.4
143+
shell: sh
144+
- run: rm -r Sentry.xcodeproj && rm -r Sentry.xcworkspace
145+
- run: set -o pipefail && NSUnbufferedIO=YES xcodebuild build -scheme SentryDistribution -sdk iphoneos -destination 'generic/platform=iphoneos' | tee raw-build-output-spm.log | xcbeautify
146+
shell: sh
147+
- name: Upload SPM Build Logs
148+
uses: actions/upload-artifact@v4
149+
if: ${{ failure() || cancelled() }}
150+
with:
151+
name: raw-build-output-spm
152+
path: |
153+
raw-build-output-spm.log
154+
132155
build-spm:
133156
name: Build with SPM
134157
runs-on: macos-15
@@ -340,6 +363,7 @@ jobs:
340363
files-changed,
341364
ios-swift-release,
342365
build-sample,
366+
build-distribution,
343367
build-spm,
344368
build-v9,
345369
check-debug-without-UIKit,

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- v8.x
8+
69
pull_request:
710
branches:
811
- main
12+
- v8.x
13+
914
schedule:
1015
- cron: "40 4 * * 6" # Weekly scheduled run to catch issues regardless of changes
1116

.github/workflows/integration-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- v8.x
67

78
pull_request:
89

.github/workflows/lint-clang-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v8.x
78

89
pull_request:
910

.github/workflows/lint-cocoapods-specs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- v8.x
8+
79
pull_request:
810

911
# Concurrency configuration:

.github/workflows/lint-dprint-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- v8.x
1112

1213
pull_request:
1314

.github/workflows/lint-shellcheck-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- v8.x
1112

1213
pull_request:
1314

.github/workflows/lint-swift-formatting.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- v8.x
8+
79
pull_request:
810

911
# Concurrency configuration:

0 commit comments

Comments
 (0)