Update to GCC 14.1.0 #12
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: Java Ci | |
on: | |
push: | |
branches: | |
- '**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: true | |
- name: Set up JDK 22 | |
uses: actions/setup-java@main | |
with: | |
java-version: 22 | |
distribution: temurin | |
- name: Assemble APK | |
run: ./gradlew --no-daemon 'assembleStandardRelease' | |
- name: Set MIHON_VERSION | |
run: echo "MIHON_VERSION=v$(grep --only-matching --perl-regexp 'versionName\s=\s\"\K([0-9\.]+)' './app/build.gradle.kts')+$(git rev-parse --short 'HEAD')" >> "${GITHUB_ENV}" | |
- name: Upload armeabi-v7a APK | |
uses: actions/upload-artifact@main | |
with: | |
name: "mihon_${{ env.MIHON_VERSION }}-github-release_armeabi-v7a" | |
path: app/build/outputs/apk/standard/release/app-standard-armeabi-v7a-release-unsigned.apk | |
- name: Upload arm64-v8a APK | |
uses: actions/upload-artifact@main | |
with: | |
name: "mihon_${{ env.MIHON_VERSION }}-github-release_arm64-v8a" | |
path: app/build/outputs/apk/standard/release/app-standard-arm64-v8a-release-unsigned.apk | |
- name: Upload x86 APK | |
uses: actions/upload-artifact@main | |
with: | |
name: "mihon_${{ env.MIHON_VERSION }}-github-release_x86" | |
path: app/build/outputs/apk/standard/release/app-standard-x86_64-release-unsigned.apk | |
- name: Upload x86_64 APK | |
uses: actions/upload-artifact@main | |
with: | |
name: "mihon_${{ env.MIHON_VERSION }}-github-release_x86_64" | |
path: app/build/outputs/apk/standard/release/app-standard-x86_64-release-unsigned.apk | |
- name: Upload universal APK | |
uses: actions/upload-artifact@main | |
with: | |
name: "mihon_${{ env.MIHON_VERSION }}-github-release_universal" | |
path: app/build/outputs/apk/standard/release/app-standard-universal-release-unsigned.apk |