ci: avoid ccache key conflict (#397)
This commit is contained in:
18
.github/workflows/gki-kernel.yml
vendored
18
.github/workflows/gki-kernel.yml
vendored
@@ -64,7 +64,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
|
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
|
||||||
CCACHE_NOHASHDIR: "true"
|
CCACHE_NOHASHDIR: "true"
|
||||||
CCACHE_MAXSIZE: "2G"
|
|
||||||
CCACHE_HARDLINK: "true"
|
CCACHE_HARDLINK: "true"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -72,13 +71,6 @@ jobs:
|
|||||||
path: KernelSU
|
path: KernelSU
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: hendrikmuhs/ccache-action@v1.2
|
|
||||||
if: inputs.use_cache == true
|
|
||||||
with:
|
|
||||||
key: ccache-aarch64-${{ inputs.version_name }}
|
|
||||||
append-timestamp: false
|
|
||||||
save: ${{ github.event_name != 'pull_request' }}
|
|
||||||
|
|
||||||
- name: Setup need_upload
|
- name: Setup need_upload
|
||||||
id: need_upload
|
id: need_upload
|
||||||
run: |
|
run: |
|
||||||
@@ -124,6 +116,14 @@ jobs:
|
|||||||
echo "[+] Add KernelSU symbols"
|
echo "[+] Add KernelSU symbols"
|
||||||
cat $KSU_ROOT/kernel/export_symbol.txt | awk '{sub("[ \t]+","");print " "$0}' >> $SYMBOL_LIST
|
cat $KSU_ROOT/kernel/export_symbol.txt | awk '{sub("[ \t]+","");print " "$0}' >> $SYMBOL_LIST
|
||||||
|
|
||||||
|
- name: Settup ccache
|
||||||
|
if: inputs.use_cache == true
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
key: gki-kernel-aarch64-${{ inputs.version_name }}
|
||||||
|
max-size: 2G
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Build boot.img
|
- name: Build boot.img
|
||||||
working-directory: android-kernel
|
working-directory: android-kernel
|
||||||
run: CCACHE="/usr/bin/ccache" LTO=thin BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
|
run: CCACHE="/usr/bin/ccache" LTO=thin BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
|
||||||
@@ -149,4 +149,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: AnyKernel3-${{ inputs.version_name }}_${{ inputs.os_patch_level }}
|
name: AnyKernel3-${{ inputs.version_name }}_${{ inputs.os_patch_level }}
|
||||||
path: ./AnyKernel3/*
|
path: ./AnyKernel3/*
|
||||||
|
|||||||
Reference in New Issue
Block a user