Skip to content

feat: weshnet integration for mobile apps #25

feat: weshnet integration for mobile apps

feat: weshnet integration for mobile apps #25

Workflow file for this run

name: Build Mobile App
on:
push:
branches:
- main
pull_request:
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Set up matrix
run: echo "starting...."
build:
needs: prepare
strategy:
matrix:
include:
- platform: android
runner: ubuntu-latest
folder-id: https://drive.google.com/drive/folders/1NHG4yH-LMXwBnvgmwDnYKWdoIizfh3Ed
framework-path: ./weshd/android/
build-cmd: eas build --local --non-interactive --platform=android
- platform: ios
runner: macos-latest
folder-id: https://drive.google.com/drive/folders/1UiIZ913lh_mrv7oKnI_u9418b5m8xttl
framework-path: ./weshd/ios/
build-cmd: eas build --local --non-interactive --platform=ios
runs-on: ${{ matrix.runner }}
continue-on-error: true
steps:
- name: View xcode
if: matrix.platform == "ios"

Check failure on line 34 in .github/workflows/mobile-build.yml

View workflow run for this annotation

GitHub Actions / Build Mobile App

Invalid workflow file

The workflow is not valid. .github/workflows/mobile-build.yml (Line: 34, Col: 13): Unexpected symbol: '"ios"'. Located at position 20 within expression: matrix.platform == "ios" .github/workflows/mobile-build.yml (Line: 50, Col: 13): Unexpected symbol: '"ios"'. Located at position 20 within expression: matrix.platform == "ios"
run: ls -n /Applications/ | grep Xcode*
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: 18
- uses: maxim-lobanov/setup-xcode@v1
if: matrix.platform == 'ios'
with:
xcode-version: latest-stable
- name: View xcode
if: matrix.platform == "ios"
run: ls -n /Applications/ | grep Xcode*
- name: Fix gitignore
run: node ./cmd/fix-app-build.js
- name: Fix package.json
run: yarn remove @lottiefiles/react-lottie-player
- name: Install node modules
run: yarn install
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Download frameworks
run: |
pip install gdown
gdown ${{matrix.folder-id}} -O ${{matrix.framework-path}} --folder
- name: Prebuild
run: npx expo prebuild --clean
- name: Build ${{ matrix.platform }}
run: ${{ matrix.build-cmd }}
- name: EAS Submit iOS IPA
if: matrix.platform == 'ios'
run: |
IPA_FILE=$(find ./ -name 'build-*.ipa' -type f)
if [ -z "$IPA_FILE" ]; then
echo "Error: IPA file not found."
exit 1
fi
# eas submit --platform=ios --path=$IPA_FILE
echo "IPA_FILE=$IPA_FILE" >> $GITHUB_ENV
- name: Upload IPA
uses: actions/upload-artifact@v3
if: matrix.platform == 'ios'
with:
name: teritori-${{ github.sha }}-${{ matrix.platform }}
path: ${{ env.IPA_FILE }}
if-no-files-found: error
- name: EAS Submit aab
if: matrix.platform == 'android'
run: |
AAB_FILE=$(find ./ -name 'build-*.aab' -type f)
if [ -z "$AAB_FILE" ]; then
echo "Error: apk file not found."
exit 1
fi
# eas submit --platform=android --path=$AAB_FILE
echo "AAB_FILE=$AAB_FILE" >> $GITHUB_ENV
- name: Upload aab
uses: actions/upload-artifact@v3
if: matrix.platform == 'android'
with:
name: teritori-${{ github.sha }}-${{ matrix.platform }}
path: ${{ env.AAB_FILE }}
if-no-files-found: error