Fix actions builds

Signed-off-by: androidacy-user <opensource@androidacy.com>
master
androidacy-user 1 year ago
parent 5a38e9ad71
commit 6f0b8ac689

@ -44,6 +44,7 @@ jobs:
caches caches
notifications notifications
jdks jdks
${{ github.workspace }}/.gradle/configuration-cache
- name: Change wrapper permissions - name: Change wrapper permissions
run: chmod +x ./gradlew run: chmod +x ./gradlew

@ -14,8 +14,7 @@ name: "CodeQL"
on: on:
push: push:
branches: [ "master" ] branches: [ "master" ]
pull_request: pull_request: # The branches below must be a subset of the branches above
# The branches below must be a subset of the branches above
branches: [ "master" ] branches: [ "master" ]
schedule: schedule:
- cron: '24 17 * * 0' - cron: '24 17 * * 0'
@ -55,10 +54,29 @@ jobs:
# queries: security-extended,security-and-quality # queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - name: Set up Java 19
# If this step fails, then you should remove it and run the build manually (see below) uses: actions/setup-java@v3
- name: Autobuild with:
uses: github/codeql-action/autobuild@v2 java-version: 19
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-includes: |
caches
notifications
jdks
${{ github.workspace }}/.gradle/configuration-cache
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build apk debug
run: ./gradlew app:assembleDefaultDebug
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

@ -23,6 +23,8 @@ dependencyResolutionManagement {
} }
} }
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
// val isCiServer = System.getenv().containsKey("CI") // val isCiServer = System.getenv().containsKey("CI")
// Cache build artifacts, so expensive operations do not need to be re-computed // Cache build artifacts, so expensive operations do not need to be re-computed
buildCache { buildCache {

Loading…
Cancel
Save