CI: Android Caching Fixes

This commit is contained in:
Holden
2025-01-23 13:31:14 -05:00
committed by Holden
parent 2e7f8f271c
commit 55e4e1e9ed
3 changed files with 10 additions and 10 deletions
+7 -7
View File
@@ -37,22 +37,22 @@ runs:
sudo make install
- name: Setup sccache (Windows)
if: runner.os == 'Windows'
if: runner.os == 'Windows' && inputs.target != 'android'
uses: mozilla-actions/sccache-action@v0.0.7
- run: echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
if: runner.os == 'Windows'
if: runner.os == 'Windows' && inputs.target != 'android'
shell: bash
- name: Setup Build Cache
uses: hendrikmuhs/ccache-action@main
with:
create-symlink: ${{ runner.os != 'Windows' }}
variant: ${{ runner.os == 'Windows' && 'sccache' || 'ccache' }}
key: ${{ inputs.host }}-ccache-${{ inputs.target }}-${{ inputs.build-type }}
variant: ${{ runner.os == 'Windows' && inputs.target != 'android' && 'sccache' || 'ccache' }}
key: ${{ inputs.host }}-${{ inputs.target }}-${{ inputs.build-type }}
restore-keys: |
${{ inputs.host }}-ccache-${{ inputs.target }}
${{ inputs.host }}-ccache-
${{ inputs.host }}-${{ inputs.target }}
${{ inputs.host }}-
max-size: 1G
verbose: 1
evict-old-files: job
@@ -62,7 +62,7 @@ runs:
shell: bash
- name: Cache CPM Modules
if: (inputs.cpm-modules != '')
if: inputs.cpm-modules != ''
uses: actions/cache@v4
with:
path: ${{ inputs.cpm-modules }}
+1 -1
View File
@@ -61,7 +61,7 @@ runs:
uses: ./.github/actions/cache
with:
host: ${{ inputs.host }}
target: ${{ inputs.arch }}
target: android
build-type: ${{ matrix.BuildType }}
cpm-modules: ${{ inputs.cpm-cache }}
+2 -2
View File
@@ -12,8 +12,8 @@ org.gradle.parallel=true
# Gradle caching allows reusing the build artifacts from a previous
# build with the same inputs. However, over time, the cache size will
# grow. Uncomment the following line to enable it.
# org.gradle.caching=true
# org.gradle.configuration-cache=true
org.gradle.caching=true
org.gradle.configuration-cache=true
# Allow AndroidX usage
android.useAndroidX=true