nodeshiftmusicburmalda/.github/workflows/main.yml
2026-05-05 18:34:50 +05:00

62 lines
2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Build iOS IPA
on:
push:
branches: [main, master]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
# Устанавливаем то, что есть, игнорируя ошибки совместимости на первом этапе
npm install --legacy-peer-deps || true
# Принудительно обновляем проблемные пакеты, которые требовал Expo
# Это то же самое, что npx expo install --fix, но напрямую через npm
npm install expo-image@~1.13.0 expo-file-system@~17.0.1 react-native-track-player@latest
- name: Expo prebuild
# Здесь мы НЕ используем --no-install, чтобы Expo мог сам докачать нужные нативные конфиги
run: npx expo prebuild --platform ios --clean
env:
EXPO_NO_DOTENV: 1
- name: Build unsigned archive
run: |
xcodebuild archive \
-workspace "ios/Burmalda Music.xcworkspace" \
-scheme "Burmalda Music" \
-configuration Release \
-sdk iphoneos \
-archivePath "$RUNNER_TEMP/burmalda.xcarchive" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_ALLOWED=NO \
ENABLE_BITCODE=NO \
| xcpretty || true
- name: Package IPA
run: |
mkdir -p Payload
cp -r "$RUNNER_TEMP/burmalda.xcarchive/Products/Applications/"*.app Payload/
zip -qr burmalda-unsigned.ipa Payload
rm -rf Payload
- name: Upload IPA artifact
uses: actions/upload-artifact@v4
with:
name: burmalda-unsigned-ipa
path: burmalda-unsigned.ipa
retention-days: 30