Skip to content

Commit

Permalink
Add ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
CZB666-wdnmd authored Jan 3, 2024
1 parent b67b33c commit d4f706e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,20 @@ jobs:
git fetch target
git cherry-pick 5af8a55074f68b72022a93554cee79632feab787 dc8769d6694990011e51c20663bde3457a48be8d
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: build-kernel-equuleus
max-size: 2G

- name: Build
run: |
cd /home/runner/kernel_sdm845
PATH="/home/runner/clang-r416183b/bin:${PATH}"
cat ./arch/arm64/configs/vendor/xiaomi/mi845_defconfig > ./arch/arm64/configs/vendor/xiaomi/equuleus_defconfig
cat ./arch/arm64/configs/vendor/xiaomi/equuleus.config >> ./arch/arm64/configs/vendor/xiaomi/equuleus_defconfig
make O=out ARCH=arm64 vendor/xiaomi/equuleus_defconfig
make -j$(nproc --all) O=out CC=clang ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=/home/runner/gcc_aarch64/bin/aarch64-linux-android- CROSS_COMPILE_ARM32=/home/runner/gcc_arm/bin/arm-linux-androideabi- AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip LLVM_IAS=1 LLVM=1
make -j$(nproc --all) O=out CC="ccache clang" ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=/home/runner/gcc_aarch64/bin/aarch64-linux-android- CROSS_COMPILE_ARM32=/home/runner/gcc_arm/bin/arm-linux-androideabi- AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip LLVM_IAS=1 LLVM=1
- name: Make boot.img
run: |
Expand Down

0 comments on commit d4f706e

Please sign in to comment.