mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
fix android build failure (#827)
- Modified package.json to create separate install commands for iOS and Android - Updated mobile-setup/action.yml to use platform-specific install commands - Android builds will no longer try to run pod install and increment ios build number
This commit is contained in:
6
.github/actions/mobile-setup/action.yml
vendored
6
.github/actions/mobile-setup/action.yml
vendored
@@ -79,7 +79,11 @@ runs:
|
||||
fi
|
||||
|
||||
# Run mobile-specific installation
|
||||
yarn install-app:mobile-deploy
|
||||
if [[ "${{ runner.os }}" == "macOS" ]]; then
|
||||
yarn install-app:mobile-deploy:ios
|
||||
else
|
||||
yarn install-app:mobile-deploy
|
||||
fi
|
||||
|
||||
# Install Ruby gems with bundler (respecting cache)
|
||||
echo "📦 Installing Ruby gems with strict lock file..."
|
||||
|
||||
10
.github/workflows/mobile-deploy.yml
vendored
10
.github/workflows/mobile-deploy.yml
vendored
@@ -494,12 +494,11 @@ jobs:
|
||||
app_path: ${{ env.APP_PATH }}
|
||||
|
||||
- name: Commit updated build number
|
||||
# disable for now, commit doesn't work as expected
|
||||
if: false #${{ !env.ACT }}
|
||||
if: ${{ !env.ACT && success() }}
|
||||
uses: ./.github/actions/push-changes
|
||||
with:
|
||||
commit_message: "incrementing ios build number for version ${{ env.VERSION }}"
|
||||
commit_paths: "./app/ios/OpenPassport/Info.plist ./app/ios/Self.xcodeproj/project.pbxproj"
|
||||
commit_paths: "./app/version.json"
|
||||
|
||||
- name: Monitor cache usage
|
||||
if: always()
|
||||
@@ -752,12 +751,11 @@ jobs:
|
||||
app_path: ${{ env.APP_PATH }}
|
||||
|
||||
- name: Commit updated build version
|
||||
# disable for now, commit doesn't work as expected
|
||||
if: false #${{ !env.ACT }}
|
||||
if: ${{ !env.ACT && success() }}
|
||||
uses: ./.github/actions/push-changes
|
||||
with:
|
||||
commit_message: "incrementing android build version for version ${{ env.VERSION }}"
|
||||
commit_paths: "./app/android/app/build.gradle"
|
||||
commit_paths: "./app/version.json"
|
||||
|
||||
- name: Monitor cache usage
|
||||
if: always()
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
"format": "yarn nice",
|
||||
"ia": "yarn install-app",
|
||||
"install-app": "yarn install-app:setup && cd ios && bundle install && bundle exec pod install && cd .. && yarn clean:xcode-env-local",
|
||||
"install-app:mobile-deploy": "yarn install-app:setup && yarn clean:xcode-env-local",
|
||||
"install-app:mobile-deploy": "yarn install && yarn build:deps && yarn clean:xcode-env-local",
|
||||
"install-app:mobile-deploy:ios": "yarn install-app:setup && yarn clean:xcode-env-local",
|
||||
"install-app:setup": "yarn install && yarn build:deps && cd ios && bundle install && bundle exec pod install && cd ..",
|
||||
"ios": "react-native run-ios",
|
||||
"ios:fastlane-debug": "yarn reinstall && bundle exec fastlane --verbose ios internal_test",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"ios": {
|
||||
"build": 151,
|
||||
"build": 152,
|
||||
"lastDeployed": null
|
||||
},
|
||||
"android": {
|
||||
|
||||
Reference in New Issue
Block a user