mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:33:26 +00:00
feat: android build
This commit is contained in:
42
.github/workflows/build-mobile.yml
vendored
42
.github/workflows/build-mobile.yml
vendored
@@ -10,6 +10,48 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 21
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build native Android modules
|
||||
run: pnpm exec nx run mobile:prebuild --platform=android
|
||||
|
||||
- name: Build Android app
|
||||
run: cd apps/mobile/android && ./gradlew assembleRelease
|
||||
|
||||
- name: Upload movie-web.apk as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: apk
|
||||
path: ./apps/mobile/android/app/build/outputs/apk/release/app-release.apk
|
||||
|
||||
build-ios:
|
||||
runs-on: macos-13
|
||||
|
||||
|
Reference in New Issue
Block a user