test 37
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 32s
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 32s
This commit is contained in:
@@ -23,13 +23,13 @@ jobs:
|
||||
echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
||||
|
||||
- name: Lancer Fastlane (Patch Ruby 3.4)
|
||||
- name: Lancer Fastlane (Compatibilité Bundler 2.x)
|
||||
working-directory: ./android
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||
run: |
|
||||
# 1. Activation de Ruby Homebrew (Ça, c'est validé ✅)
|
||||
# 1. Activation de Ruby Homebrew
|
||||
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||
echo "✅ Ruby actif : $(ruby -v)"
|
||||
|
||||
@@ -41,32 +41,28 @@ jobs:
|
||||
# 3. Nettoyage
|
||||
rm -rf vendor Gemfile.lock .bundle
|
||||
|
||||
# --- 🚑 RÉPARATION COMPATIBILITÉ RUBY 3.4 🚑 ---
|
||||
# On crée un Gemfile qui force :
|
||||
# A. Une version RÉCENTE de Fastlane (pour éviter la v1.92 de 2016)
|
||||
# B. Les librairies qu'Apple/Ruby ont retiré de la version 3.4 (abbrev, ostruct, etc.)
|
||||
|
||||
# --- 📜 GEMFILE 📜 ---
|
||||
echo "source 'https://rubygems.org'" > Gemfile
|
||||
|
||||
# On force une version récente (2.200+)
|
||||
echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile
|
||||
|
||||
# On rajoute les pièces manquantes de Ruby 3.4
|
||||
# Patchs pour Ruby 3.4+
|
||||
echo "gem 'abbrev'" >> Gemfile
|
||||
echo "gem 'ostruct'" >> Gemfile
|
||||
echo "gem 'mutex_m'" >> Gemfile
|
||||
echo "gem 'base64'" >> Gemfile
|
||||
echo "gem 'csv'" >> Gemfile
|
||||
echo "gem 'bigdecimal'" >> Gemfile
|
||||
echo "gem 'drb'" >> Gemfile
|
||||
|
||||
echo "📝 Gemfile patché généré."
|
||||
echo "📝 Gemfile généré."
|
||||
|
||||
# 4. Installation
|
||||
echo "⬇️ Installation de Bundler..."
|
||||
gem install bundler
|
||||
# 4. INSTALLATION SPÉCIFIQUE
|
||||
echo "⬇️ Installation de Bundler 2.7.2 (Pour compatibilité Fastlane)..."
|
||||
# On installe précisément la version que Fastlane réclame (< 3.0.0)
|
||||
gem install bundler -v 2.7.2 --force
|
||||
|
||||
echo "📦 Installation des gems..."
|
||||
bundle install --jobs 4
|
||||
# La syntaxe '_2.7.2_' force l'utilisation de CETTE version précise
|
||||
bundle _2.7.2_ update --jobs 4
|
||||
|
||||
echo "🚀 Lancement..."
|
||||
bundle exec fastlane deploy_firebase
|
||||
bundle _2.7.2_ exec fastlane deploy_firebase
|
||||
Reference in New Issue
Block a user