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.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||||
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
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
|
working-directory: ./android
|
||||||
env:
|
env:
|
||||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||||
run: |
|
run: |
|
||||||
# 1. Activation de Ruby Homebrew (Ça, c'est validé ✅)
|
# 1. Activation de Ruby Homebrew
|
||||||
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||||
echo "✅ Ruby actif : $(ruby -v)"
|
echo "✅ Ruby actif : $(ruby -v)"
|
||||||
|
|
||||||
@@ -41,32 +41,28 @@ jobs:
|
|||||||
# 3. Nettoyage
|
# 3. Nettoyage
|
||||||
rm -rf vendor Gemfile.lock .bundle
|
rm -rf vendor Gemfile.lock .bundle
|
||||||
|
|
||||||
# --- 🚑 RÉPARATION COMPATIBILITÉ RUBY 3.4 🚑 ---
|
# --- 📜 GEMFILE 📜 ---
|
||||||
# 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 "source 'https://rubygems.org'" > Gemfile
|
||||||
|
|
||||||
# On force une version récente (2.200+)
|
|
||||||
echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile
|
echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile
|
||||||
|
# Patchs pour Ruby 3.4+
|
||||||
# On rajoute les pièces manquantes de Ruby 3.4
|
|
||||||
echo "gem 'abbrev'" >> Gemfile
|
echo "gem 'abbrev'" >> Gemfile
|
||||||
echo "gem 'ostruct'" >> Gemfile
|
echo "gem 'ostruct'" >> Gemfile
|
||||||
echo "gem 'mutex_m'" >> Gemfile
|
echo "gem 'mutex_m'" >> Gemfile
|
||||||
echo "gem 'base64'" >> Gemfile
|
echo "gem 'base64'" >> Gemfile
|
||||||
echo "gem 'csv'" >> Gemfile
|
echo "gem 'csv'" >> Gemfile
|
||||||
echo "gem 'bigdecimal'" >> Gemfile
|
echo "gem 'bigdecimal'" >> Gemfile
|
||||||
|
echo "gem 'drb'" >> Gemfile
|
||||||
|
|
||||||
echo "📝 Gemfile patché généré."
|
echo "📝 Gemfile généré."
|
||||||
|
|
||||||
# 4. Installation
|
# 4. INSTALLATION SPÉCIFIQUE
|
||||||
echo "⬇️ Installation de Bundler..."
|
echo "⬇️ Installation de Bundler 2.7.2 (Pour compatibilité Fastlane)..."
|
||||||
gem install bundler
|
# 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..."
|
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..."
|
echo "🚀 Lancement..."
|
||||||
bundle exec fastlane deploy_firebase
|
bundle _2.7.2_ exec fastlane deploy_firebase
|
||||||
Reference in New Issue
Block a user