Skip to content

Commit

Permalink
Disable daemons + upgrade actions/checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
InvictusRMC committed Feb 27, 2024
1 parent 229e655 commit cad9985
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/apk_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -25,7 +25,7 @@ jobs:
cache: 'gradle'

- name: Build debug APK
run: ./gradlew assembleDebug
run: ./gradlew assembleDebug --no-daemon

- name: Upload APK
uses: actions/upload-artifact@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/apk_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: apk_build
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge
fetch-depth: 0
ref: refs/pull/${{github.event.pull_request.number}}/merge

- uses: ./.github/actions/checkout_submodules

Expand All @@ -29,6 +29,7 @@ jobs:
run: |
echo $KEYSTORE_FILE | base64 -d > app/build.keystore
./gradlew assembleRelease \
--no-daemon \
-Pandroid.injected.signing.store.file=$(pwd)/app/build.keystore \
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \
-Pandroid.injected.signing.key.alias=$KEY_ALIAS \
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ jobs:
java-version: '17'
cache: 'gradle'

# TODO: Without this step, the Gradle check task fails with the following error:
# Execution failed for task ':common:verifyDebugDatabaseMigration'.
# > A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
# > No suitable driver found for jdbc:sqlite:
# - name: Run verifyDebugDatabase
# run: ./gradlew verifyDebugDatabaseMigration --no-daemon

- name: Run check
run: ./gradlew check --no-daemon

Expand Down

0 comments on commit cad9985

Please sign in to comment.