File tree 3 files changed +19
-5
lines changed
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ name: Update Dependencies
3
3
on :
4
4
# Run every day.
5
5
schedule :
6
- - cron : ' 0 3 * * *'
6
+ - cron : " 0 3 * * *"
7
7
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
8
8
push :
9
- branches :
10
- - main
9
+ # branches:
10
+ # - main
11
11
12
12
jobs :
13
13
android :
23
23
with :
24
24
path : flutter/scripts/update-cocoa.sh
25
25
name : Cocoa SDK
26
+ runs-on : macos-latest
26
27
secrets :
27
28
api-token : ${{ secrets.CI_DEPLOY_KEY }}
28
29
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
+ if [[ -n ${CI: +x} ]]; then
5
+ echo " Running in CI so we need to set up Flutter SDK first"
6
+ curl -Lv https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.13.3-stable.zip --output /tmp/flutter.zip
7
+ unzip /tmp/flutter.zip -d /tmp
8
+ export PATH=" :/tmp/flutter/bin:$PATH "
9
+ which flutter
10
+ flutter --version
11
+ fi
12
+
4
13
cocoa_version=" ${1:- $(./ scripts/ update-cocoa.sh get-version)} "
5
14
6
15
cd " $( dirname " $0 " ) /../"
@@ -21,9 +30,11 @@ rm -rf $temp
21
30
mkdir -p $temp
22
31
curl -Lv https://github.com/getsentry/sentry-cocoa/releases/download/$cocoa_version /Sentry.xcframework.zip -o $temp /Sentry.xcframework.zip
23
32
subdir=" Carthage/Build/Sentry.xcframework/macos-arm64_x86_64/Sentry.framework"
24
- unzip -q $temp /Sentry.xcframework.zip " $subdir /*" -d $temp
33
+ unzip $temp /Sentry.xcframework.zip " $subdir /*" -d $temp
25
34
mv " $temp /$subdir " $temp /Sentry.framework
26
35
27
36
dart run ffigen --config ffi-cocoa.yaml
28
37
sed -i.bak ' s|final class|class|g' lib/src/sentry_cocoa.dart
29
38
rm lib/src/sentry_cocoa.dart.bak
39
+
40
+ exit 1
Original file line number Diff line number Diff line change 12
12
13
13
case $1 in
14
14
get-version)
15
- echo ${BASH_REMATCH[2]}
15
+ # xxx
16
+ echo " 8.10.0"
17
+ # echo ${BASH_REMATCH[2]}
16
18
;;
17
19
get-repo)
18
20
echo " https://github.com/getsentry/sentry-cocoa.git"
You can’t perform that action at this time.
0 commit comments