diff --git a/.github/workflows/APK_Debug.yml b/.github/workflows/APK_Debug.yml new file mode 100644 index 0000000..593e01c --- /dev/null +++ b/.github/workflows/APK_Debug.yml @@ -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/setup-java@v1.4.3 + 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 + + + + + + +