This commit is contained in:
@@ -23,36 +23,39 @@ jobs:
|
||||
echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
||||
|
||||
- name: Lancer Fastlane (Avec Ruby Homebrew Forcé)
|
||||
- name: Lancer Fastlane (Réparation Dépendances)
|
||||
working-directory: ./android
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||
run: |
|
||||
# --- 🚨 INJECTION DU CHEMIN RUBY 🚨 ---
|
||||
# On force le système à regarder dans ton dossier Homebrew EN PREMIER
|
||||
# C'est ce qui permet d'éviter le Ruby 2.6 du système
|
||||
# 1. On active le bon Ruby (ça marche enfin !)
|
||||
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||
echo "✅ Ruby actif : $(ruby -v)"
|
||||
|
||||
# Preuve que ça marche (ça doit afficher Ruby 3.x ou 4.x dans les logs)
|
||||
echo "Version de Ruby active :"
|
||||
ruby -v
|
||||
|
||||
# --- Configuration Locale des Gems ---
|
||||
# On installe tout dans un dossier local pour éviter les "Permission denied"
|
||||
# 2. Config pour installer les gems en local
|
||||
export GEM_HOME=$PWD/vendor/bundle
|
||||
export GEM_PATH=$PWD/vendor/bundle
|
||||
export PATH=$GEM_HOME/bin:$PATH
|
||||
|
||||
# Nettoyage de sécurité
|
||||
rm -rf vendor Gemfile.lock
|
||||
# 3. NETTOYAGE TOTAL
|
||||
rm -rf vendor Gemfile.lock .bundle
|
||||
|
||||
# Installation
|
||||
echo "Installation de Bundler..."
|
||||
# --- ♻️ 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
|
||||
echo "source 'https://rubygems.org'" > Gemfile
|
||||
echo "gem 'fastlane'" >> Gemfile
|
||||
|
||||
echo "📝 Nouveau Gemfile généré pour forcer la mise à jour."
|
||||
|
||||
# 4. INSTALLATION
|
||||
echo "⬇️ Installation de Bundler..."
|
||||
gem install bundler
|
||||
|
||||
echo "Installation des dépendances..."
|
||||
bundle install
|
||||
echo "📦 Installation des gems (Dernières versions)..."
|
||||
# 'bundle update' va chercher les versions compatibles avec Ruby 3.4
|
||||
bundle update --jobs 4
|
||||
|
||||
echo "Lancement..."
|
||||
echo "🚀 Lancement..."
|
||||
bundle exec fastlane deploy_firebase
|
||||
Reference in New Issue
Block a user