Skip to content

Commit

Permalink
updated release apk workflow and Xcode Cloud flutter link
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteen committed May 29, 2024
1 parent f6151e6 commit b773dd1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: 'beta'

- name: Set up Flutter 3.16.0
run: |
FLUTTER_URL="https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.0-stable.tar.xz"
FLUTTER_DIR="$HOME/flutter"
mkdir -p $FLUTTER_DIR
curl -L $FLUTTER_URL -o /tmp/flutter.tar.xz
tar -xf /tmp/flutter.tar.xz -C $FLUTTER_DIR --strip-components=1
chmod +x $FLUTTER_DIR/bin/cache/dart-sdk/bin/dart
echo "$FLUTTER_DIR/bin" >> $GITHUB_PATH
- working-directory: ./open_earable
run: flutter pub get
Expand Down
7 changes: 3 additions & 4 deletions open_earable/ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Fail this script if any subcommand fails.
set -e

FLUTTER_URL="https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.0-stable.tar.xz"
FLUTTER_URL="https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.16.0-stable.zip"
FLUTTER_DIR="$HOME/flutter"

# by default, the execution directory of this script is the ci_scripts directory
Expand All @@ -13,9 +13,8 @@ cd $CI_WORKSPACE_PATH

echo "🟩 Install Flutter"
mkdir -p $FLUTTER_DIR
time curl -L $FLUTTER_URL -o /tmp/flutter.tar.xz
time tar -xf /tmp/flutter.tar.xz -C $FLUTTER_DIR --strip-components=1
chmod +x $FLUTTER_DIR/bin/cache/dart-sdk/bin/dart
time curl -L $FLUTTER_URL -o /tmp/flutter.zip
time unzip /tmp/flutter.zip -d $FLUTTER_DIR
export PATH="$PATH:$HOME/flutter/bin"

echo "🟩 Flutter Precache"
Expand Down

0 comments on commit b773dd1

Please sign in to comment.