Skip to content

ndk构建测试

ndk构建测试 #12

Workflow file for this run

name: Android CI Build
on:
pull_request:
push:
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload Debug apk
uses: actions/upload-artifact@v3
with:
name: apk-debug
path: app/build/outputs/apk/debug
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload Release apk
uses: actions/upload-artifact@v3
with:
name: apk-release
path: app/build/outputs/apk/release