FINALLY find a solution for overlapping subjects!!! (but overlapping … #156
This file contains hidden or 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: Android Build and Artifact | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| build: | |
| name: Android Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: "zulu" | |
| cache: "gradle" | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| cache: true | |
| - name: Set up Flutter | |
| run: flutter pub get | |
| - name: Build APKs | |
| run: flutter build apk --release --split-per-abi | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install build tools | |
| run: | | |
| echo "y" | sdkmanager "build-tools;33.0.0" "platforms;android-33" | |
| - uses: ilharp/sign-android-release@v1 | |
| name: Sign app APK | |
| with: | |
| releaseDir: build/app/outputs/flutter-apk/ | |
| signingKey: ${{ secrets.SIGNING_KEYSTORE }} | |
| keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }} | |
| keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} | |
| keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| buildToolsVersion: 33.0.0 | |
| - name: Archive arm64-v8a | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: android-arm64-v8a | |
| path: | | |
| build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk | |
| - name: Archive armeabi-v7a | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: android-armeabi-v7a | |
| path: | | |
| build/app/outputs/flutter-apk/*-armeabi-v7a-release-signed.apk | |
| - name: Archive x86_64 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: android-x86_64 | |
| path: | | |
| build/app/outputs/flutter-apk/*-x86_64-release-signed.apk |