Skip to content

Commit 6b978eb

Browse files
committed
fix update-deps CI
1 parent 8113586 commit 6b978eb

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/update-deps.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Update Dependencies
33
on:
44
# Run every day.
55
schedule:
6-
- cron: '0 3 * * *'
6+
- cron: "0 3 * * *"
77
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
88
push:
9-
branches:
10-
- main
9+
# branches:
10+
# - main
1111

1212
jobs:
1313
android:
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
path: flutter/scripts/update-cocoa.sh
2525
name: Cocoa SDK
26+
runs-on: macos-latest
2627
secrets:
2728
api-token: ${{ secrets.CI_DEPLOY_KEY }}
2829

flutter/scripts/generate-cocoa-bindings.sh

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

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+
413
cocoa_version="${1:-$(./scripts/update-cocoa.sh get-version)}"
514

615
cd "$(dirname "$0")/../"
@@ -21,9 +30,11 @@ rm -rf $temp
2130
mkdir -p $temp
2231
curl -Lv https://github.com/getsentry/sentry-cocoa/releases/download/$cocoa_version/Sentry.xcframework.zip -o $temp/Sentry.xcframework.zip
2332
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
2534
mv "$temp/$subdir" $temp/Sentry.framework
2635

2736
dart run ffigen --config ffi-cocoa.yaml
2837
sed -i.bak 's|final class|class|g' lib/src/sentry_cocoa.dart
2938
rm lib/src/sentry_cocoa.dart.bak
39+
40+
exit 1

flutter/scripts/update-cocoa.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ fi
1212

1313
case $1 in
1414
get-version)
15-
echo ${BASH_REMATCH[2]}
15+
# xxx
16+
echo "8.10.0"
17+
# echo ${BASH_REMATCH[2]}
1618
;;
1719
get-repo)
1820
echo "https://github.com/getsentry/sentry-cocoa.git"

0 commit comments

Comments
 (0)