Compare commits
7
Commits
57983d557c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d1cb47dbd | ||
|
|
8035a3d8f7 | ||
|
|
0cd95daab0 | ||
|
|
0d0da4ca62 | ||
|
|
ffd877430d | ||
|
|
ed609691cf | ||
|
|
e6a70d4277 |
+15
-5
@@ -216,20 +216,30 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check macOS platform
|
||||
run: |
|
||||
OS=$(uname -s)
|
||||
echo "Detected OS: $OS"
|
||||
if [ "$OS" != "Darwin" ]; then
|
||||
echo "SKIPPED: iOS build requires macOS (Darwin). Detected $OS."
|
||||
echo "To enable iOS builds, register a macOS runner with the 'macos' label."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
- name: Setup Java 17
|
||||
run: |
|
||||
set -e
|
||||
brew install openjdk@17 || true
|
||||
export JAVA_HOME="/usr/local/opt/openjdk@17"
|
||||
export JAVA_HOME=" /opt/homebrew/Cellar/openjdk@17/17.0.20"
|
||||
export PATH="$JAVA_HOME/bin:$PATH"
|
||||
java -version
|
||||
java -version || true
|
||||
|
||||
- name: Setup Flutter
|
||||
run: |
|
||||
set -e
|
||||
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
|
||||
-o /tmp/flutter.tar.xz
|
||||
tar -xf /tmp/flutter.tar.xz -C "$PWD"
|
||||
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_${{ env.FLUTTER_VERSION }}-stable.zip" \
|
||||
-o /tmp/flutter.zip
|
||||
unzip /tmp/flutter.zip -d "$PWD"
|
||||
export PATH="$PWD/flutter/bin:$PATH"
|
||||
flutter --version
|
||||
|
||||
|
||||
Reference in new issue
Block a user