Skip to content

Commit

Permalink
Create APK_Debug.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kjjjjjjjjjjjj authored Feb 6, 2024
1 parent e41c395 commit e294b2a
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/APK_Debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: APK Debug

on:
push:
paths-ignore:
- '**/*.md'
- .gitignore
- .editorconfig
- appveyor.yml
- 'azure-pipelines*.yml'
- 'ci/azure-pipelines/template*.yml'
workflow_dispatch:
pull_request:
paths-ignore:
- '**/*.md'
- .gitignore
- .editorconfig
- appveyor.yml
- 'azure-pipelines*.yml'
- 'ci/azure-pipelines/template*.yml'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 11.0.15

- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build MCinaBox Debug (with Gradle)
run: |
chmod +x gradlew
./gradlew clean :app:assembleDebug
shell: bash

- name: Change APK name
run: |
mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/MCinaBox-${{ runner.os }}-Debug.apk
shell: bash

- name: Upload All Pack
uses: actions/upload-artifact@v2
with:
name: MCinaBox-${{ runner.os }}-DebugPack
path: app/build/outputs

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: MCinaBox-${{ runner.os }}-Debug.apk
path: app/build/outputs/apk/debug/MCinaBox-${{ runner.os }}-Debug.apk







0 comments on commit e294b2a

Please sign in to comment.