test 36
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 16s
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 16s
This commit is contained in:
@@ -23,39 +23,50 @@ jobs:
|
||||
echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
||||
|
||||
- name: Lancer Fastlane (Réparation Dépendances)
|
||||
- name: Lancer Fastlane (Patch Ruby 3.4)
|
||||
working-directory: ./android
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||
run: |
|
||||
# 1. On active le bon Ruby (ça marche enfin !)
|
||||
# 1. Activation de Ruby Homebrew (Ça, c'est validé ✅)
|
||||
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||
echo "✅ Ruby actif : $(ruby -v)"
|
||||
|
||||
# 2. Config pour installer les gems en local
|
||||
# 2. Configuration Environnement Local
|
||||
export GEM_HOME=$PWD/vendor/bundle
|
||||
export GEM_PATH=$PWD/vendor/bundle
|
||||
export PATH=$GEM_HOME/bin:$PATH
|
||||
|
||||
# 3. NETTOYAGE TOTAL
|
||||
# 3. Nettoyage
|
||||
rm -rf vendor Gemfile.lock .bundle
|
||||
|
||||
# --- ♻️ RÉGÉNÉRATION DU GEMFILE ♻️ ---
|
||||
# Ton Gemfile actuel semble demander des versions périmées.
|
||||
# On l'écrase pour forcer l'utilisation des dernières versions compatibles Ruby 3.4
|
||||
# --- 🚑 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.)
|
||||
|
||||
echo "source 'https://rubygems.org'" > Gemfile
|
||||
echo "gem 'fastlane'" >> Gemfile
|
||||
|
||||
echo "📝 Nouveau Gemfile généré pour forcer la mise à jour."
|
||||
# On force une version récente (2.200+)
|
||||
echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile
|
||||
|
||||
# 4. INSTALLATION
|
||||
# On rajoute les pièces manquantes de 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 "📝 Gemfile patché généré."
|
||||
|
||||
# 4. Installation
|
||||
echo "⬇️ Installation de Bundler..."
|
||||
gem install bundler
|
||||
|
||||
echo "📦 Installation des gems (Dernières versions)..."
|
||||
# 'bundle update' va chercher les versions compatibles avec Ruby 3.4
|
||||
bundle update --jobs 4
|
||||
echo "📦 Installation des gems..."
|
||||
bundle install --jobs 4
|
||||
|
||||
echo "🚀 Lancement..."
|
||||
bundle exec fastlane deploy_firebase
|
||||
Reference in New Issue
Block a user