CI: Android Caching Fixes
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user