From b773dd163272d8aa8872fa91d52d7a5f63d31b2c Mon Sep 17 00:00:00 2001 From: Philipp Lepold Date: Wed, 29 May 2024 13:02:48 +0200 Subject: [PATCH] updated release apk workflow and Xcode Cloud flutter link --- .github/workflows/release_apk.yml | 10 ++++++++++ open_earable/ios/ci_scripts/ci_post_clone.sh | 7 +++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_apk.yml b/.github/workflows/release_apk.yml index 548db49..e3ac5bd 100644 --- a/.github/workflows/release_apk.yml +++ b/.github/workflows/release_apk.yml @@ -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 diff --git a/open_earable/ios/ci_scripts/ci_post_clone.sh b/open_earable/ios/ci_scripts/ci_post_clone.sh index cc83ef4..5ae868a 100755 --- a/open_earable/ios/ci_scripts/ci_post_clone.sh +++ b/open_earable/ios/ci_scripts/ci_post_clone.sh @@ -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 @@ -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"