|
@@ -74,26 +74,8 @@ jobs:
|
|
|
ccache --max-size=2G
|
|
ccache --max-size=2G
|
|
|
ccache --set-config=compression=true
|
|
ccache --set-config=compression=true
|
|
|
echo "CCACHE_DIR=$HOME/.ccache" >> $GITHUB_ENV
|
|
echo "CCACHE_DIR=$HOME/.ccache" >> $GITHUB_ENV
|
|
|
-
|
|
|
|
|
- - name: Restore ccache from cache
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
- with:
|
|
|
|
|
- path: ~/.ccache
|
|
|
|
|
- key: ${{ inputs.android_version }}-${{ inputs.kernel_version }}-${{ inputs.sub_level }}-ccache-${{ github.sha }}
|
|
|
|
|
- restore-keys: |
|
|
|
|
|
- ${{ inputs.android_version }}-${{ inputs.kernel_version }}-${{ inputs.sub_level }}-ccache-
|
|
|
|
|
-
|
|
|
|
|
- - name: Cache toolchain
|
|
|
|
|
- id: cache-toolchain
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
- with:
|
|
|
|
|
- path: |
|
|
|
|
|
- kernel-build-tools
|
|
|
|
|
- mkbootimg
|
|
|
|
|
- key: toolchain-${{ runner.os }}-v1
|
|
|
|
|
|
|
|
|
|
- - name: Download toolchain (if cache not found)
|
|
|
|
|
- if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
|
|
|
|
|
|
+ - name: Download toolchain
|
|
|
run: |
|
|
run: |
|
|
|
AOSP_MIRROR=https://android.googlesource.com
|
|
AOSP_MIRROR=https://android.googlesource.com
|
|
|
BRANCH=main-kernel-build-2024
|
|
BRANCH=main-kernel-build-2024
|