feat: weshnet integration for mobile apps #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Mobile App | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
build: | ||
Check failure on line 10 in .github/workflows/mobile-build.yml GitHub Actions / Build Mobile AppInvalid workflow file
|
||
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 --output=./app-build/app.apk --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 --output=./app-build/app.ipa --platform=ios | ||
runs-on: ${{ matrix.runner }} | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: "yarn" | ||
node-version: 18 | ||
- name: Install node modules | ||
run: yarn | ||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
- name: Download framework | ||
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: Upload apk | ||
uses: actions/upload-artifact@v3 | ||
if: matrix.platform == 'android' | ||
with: | ||
name: teritori-${{ github.sha }}-${{ matrix.os }} | ||
path: app-build/app.apk | ||
if-no-files-found: error | ||
- name: Upload ipa | ||
uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'ios' | ||
with: | ||
name: teritori-${{ github.sha }}-${{ matrix.os }} | ||
path: app-build/app.ipa | ||
if-no-files-found: error |