|
| 1 | +name: Release |
| 2 | +permissions: {} |
| 3 | + |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | +# push: |
| 7 | +# branches: |
| 8 | +# - main |
| 9 | + |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + name: "Gradle build" |
| 13 | + runs-on: ubuntu-latest |
| 14 | + |
| 15 | + steps: |
| 16 | + - name: "Checkout sources" |
| 17 | + uses: actions/checkout@v5 |
| 18 | + with: |
| 19 | + fetch-depth: 0 |
| 20 | + - name: "Setup Java" |
| 21 | + uses: actions/setup-java@v5 |
| 22 | + with: |
| 23 | + distribution: "temurin" |
| 24 | + java-version: "18" |
| 25 | + - name: "Setup Gradle" |
| 26 | + uses: gradle/actions/setup-gradle@v4 |
| 27 | + with: |
| 28 | + cache-encryption-key: ${{ secrets.GradleEncryptionKey }} |
| 29 | + build-scan-publish: true |
| 30 | + build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" |
| 31 | + build-scan-terms-of-use-agree: "yes" |
| 32 | + - name: "Setup matchers" |
| 33 | + run: | |
| 34 | + # Setting up matchers... |
| 35 | +
|
| 36 | + matchers_dir='${{ github.workspace }}/.github/matchers' |
| 37 | + matcher_list() |
| 38 | + { |
| 39 | + echo 'gradle-build-matcher.json' |
| 40 | + echo 'gradle-build-kotlin-error-matcher.json' |
| 41 | + } |
| 42 | +
|
| 43 | + matcher_list | while IFS='' read -r NAME; do |
| 44 | + if test -f "${matchers_dir:?}/${NAME:?}"; then |
| 45 | + echo "::add-matcher::${matchers_dir:?}/${NAME:?}" |
| 46 | + echo "Matcher configured: ${NAME:?}" |
| 47 | + fi |
| 48 | + done |
| 49 | + - name: "Execute Gradle build" |
| 50 | + run: "./gradlew --no-daemon :play-services-core:assembleDefaultRelease" |
| 51 | + env: |
| 52 | + ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_FINGERPRINT }} |
| 53 | + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} |
| 54 | + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} |
| 55 | + - name: "Execute Gradle check" |
| 56 | + run: "./gradlew --no-daemon check" |
| 57 | + |
| 58 | + - name: Upload artifacts |
| 59 | + uses: actions/upload-artifact@v6 |
| 60 | + with: |
| 61 | + name: MicroG-RE |
| 62 | + path: play-services-core\build\outputs\apk\default\release\microg-release-***.apk |
| 63 | + |
0 commit comments