Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Cleanup yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jul 31, 2022
1 parent d5826c1 commit d4521d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ jobs:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Unit tests
run: ./gradlew test
- run: ./gradlew test

instrumentation-tests:
runs-on: macos-latest
Expand All @@ -81,27 +80,23 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: AVD cache
uses: actions/cache@v3
- uses: gradle/gradle-build-action@v2
- uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
- if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
Expand All @@ -118,8 +113,7 @@ jobs:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew app:assemble
- run: ./gradlew app:assemble
- uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest'
with:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- name: Build APK
uses: gradle/gradle-build-action@v2
with:
arguments: app:assembleProdRelease
- name: Create Release
uses: ncipollo/release-action@v1
- uses: gradle/gradle-build-action@v2
- run: ./gradlew app:assembleProdRelease
- uses: ncipollo/release-action@v1
with:
artifacts: "app/build/*.apk"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d4521d5

Please sign in to comment.