commit 55d76d23a6ebb2be3b04be036bb725ec434c6ce2 parent d630e5c420b96dc0c5b3aea3f039d2860a8784e2 Author: auth <64337177+authorisation@users.noreply.github.com> Date: Sun, 14 Apr 2024 12:44:00 +0200 ci(debug): run on PRs Diffstat:
D | .github/workflows/beta.yml | | | 196 | ------------------------------------------------------------------------------- |
A | .github/workflows/debug.yml | | | 198 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 198 insertions(+), 196 deletions(-)
diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml @@ -1,196 +0,0 @@ -name: Beta CI -on: - workflow_dispatch: - inputs: - ci_upload: - description: 'Upload to CI channel' - required: false - type: boolean - -jobs: - job_armv8: - runs-on: macos-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build - run: ./gradlew assembleArmv8Debug - - - name: Build Version - run: ./gradlew getVersion - - - name: Set Environment Variables - id: version-env - run: | - echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV - echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Git branch name - id: git-branch-name - uses: EthanSK/git-branch-name-action@main - - - name: Rename APK file - run: | - mv app/build/outputs/apk/armv8/debug/*.apk app/build/outputs/apk/armv8/debug/snapenhance-${{ env.version }}-armv8-${{ steps.version-env.outputs.sha_short }}.apk - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: snapenhance-armv8-debug - path: app/build/outputs/apk/armv8/debug/*.apk - - job_armv7: - runs-on: macos-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build - run: ./gradlew assembleArmv7Debug - - - name: Build Version - run: ./gradlew getVersion - - - name: Set Environment Variables - id: version-env - run: | - echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV - echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Git branch name - id: git-branch-name - uses: EthanSK/git-branch-name-action@main - - - name: Rename APK file - run: | - mv app/build/outputs/apk/armv7/debug/*.apk app/build/outputs/apk/armv7/debug/snapenhance-${{ env.version }}-armv7-${{ steps.version-env.outputs.sha_short }}.apk - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: snapenhance-armv7-debug - path: app/build/outputs/apk/armv7/debug/*.apk - - job_universal: - runs-on: macos-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build - run: ./gradlew assembleAllDebug - - - name: Build Version - run: ./gradlew getVersion - - - name: Set Environment Variables - id: version-env - run: | - echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV - echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Git branch name - id: git-branch-name - uses: EthanSK/git-branch-name-action@main - - - name: Rename APK files - run: | - mv app/build/outputs/apk/all/debug/*.apk app/build/outputs/apk/all/debug/snapenhance-${{ env.version }}-universal-${{ steps.version-env.outputs.sha_short }}.apk - - - name: Upload universal - uses: actions/upload-artifact@v4 - with: - name: snapenhance-universal-debug - path: app/build/outputs/apk/all/debug/*.apk - - job_manager: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build - run: ./gradlew manager:assembleDebug - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: manager - path: manager/build/outputs/apk/debug/*.apk - - job_core: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build - run: ./gradlew assembleCoreDebug - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: core - path: app/build/outputs/apk/core/debug/*.apk - diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml @@ -0,0 +1,198 @@ +name: Debug CI +on: + workflow_dispatch: + inputs: + ci_upload: + description: 'Upload to CI channel' + required: false + type: boolean + pull_request: + branches: ["dev"] + +jobs: + job_armv8: + runs-on: macos-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + run: ./gradlew assembleArmv8Debug + + - name: Build Version + run: ./gradlew getVersion + + - name: Set Environment Variables + id: version-env + run: | + echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Git branch name + id: git-branch-name + uses: EthanSK/git-branch-name-action@main + + - name: Rename APK file + run: | + mv app/build/outputs/apk/armv8/debug/*.apk app/build/outputs/apk/armv8/debug/snapenhance-${{ env.version }}-armv8-${{ steps.version-env.outputs.sha_short }}.apk + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: snapenhance-armv8-debug + path: app/build/outputs/apk/armv8/debug/*.apk + + job_armv7: + runs-on: macos-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + run: ./gradlew assembleArmv7Debug + + - name: Build Version + run: ./gradlew getVersion + + - name: Set Environment Variables + id: version-env + run: | + echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Git branch name + id: git-branch-name + uses: EthanSK/git-branch-name-action@main + + - name: Rename APK file + run: | + mv app/build/outputs/apk/armv7/debug/*.apk app/build/outputs/apk/armv7/debug/snapenhance-${{ env.version }}-armv7-${{ steps.version-env.outputs.sha_short }}.apk + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: snapenhance-armv7-debug + path: app/build/outputs/apk/armv7/debug/*.apk + + job_universal: + runs-on: macos-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + run: ./gradlew assembleAllDebug + + - name: Build Version + run: ./gradlew getVersion + + - name: Set Environment Variables + id: version-env + run: | + echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Git branch name + id: git-branch-name + uses: EthanSK/git-branch-name-action@main + + - name: Rename APK files + run: | + mv app/build/outputs/apk/all/debug/*.apk app/build/outputs/apk/all/debug/snapenhance-${{ env.version }}-universal-${{ steps.version-env.outputs.sha_short }}.apk + + - name: Upload universal + uses: actions/upload-artifact@v4 + with: + name: snapenhance-universal-debug + path: app/build/outputs/apk/all/debug/*.apk + + job_manager: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + run: ./gradlew manager:assembleDebug + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: manager + path: manager/build/outputs/apk/debug/*.apk + + job_core: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + run: ./gradlew assembleCoreDebug + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: core + path: app/build/outputs/apk/core/debug/*.apk +