Delete fixing.java #7
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: 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: | |
#Prepare: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Build MCinaBox APK with Gradle | |
# run: | | |
# chmod +x gradlew | |
# ./gradlew clean :app:assembleDebug | |
# - name: Upload APK | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: app-debug | |
# path: app/build/outputs/apk/debug/app-debug.apk | |
build_on_Windows: | |
name: Build on Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11.0.5 | |
uses: actions/[email protected] | |
with: | |
java-version: 11.0.15 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
#保存cache时在Windows里遇到权限问题(太懒还没修复) :) | |
- 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 | |
build_on_Ubuntu: | |
name: Build on Ubuntu | |
runs-on: Ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11.0.5 | |
uses: actions/[email protected] | |
with: | |
java-version: 11.0.15 | |
- 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 | |
build_on_MacOS: | |
name: Build on MacOS | |
runs-on: MacOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11.0.5 | |
uses: actions/[email protected] | |
with: | |
java-version: 11.0.15 | |
- 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 |