Skip to content

Commit f336c55

Browse files
committed
Misc: Cleanup & Cache
Cleanup files Introduce Building Cache since Im tried of waiting and wasting resources
1 parent d6e1a9e commit f336c55

16 files changed

Lines changed: 49 additions & 19619 deletions

.github/workflows/build-kernel.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
# - d2s
2222
# - d2x
2323
# - d2xks
24+
25+
env:
26+
CCACHE_DIR: ~/.ccache
27+
CCACHE_COMPRESS: "1"
28+
CCACHE_COMPRESSLEVEL: "5"
29+
CCACHE_MAXSIZE: "10G"
30+
2431
steps:
2532
- name: Checkout repository
2633
uses: actions/checkout@v4
@@ -50,6 +57,30 @@ jobs:
5057
zip \
5158
zstd
5259
60+
- name: Restore ccache
61+
uses: actions/cache@v4
62+
with:
63+
path: ~/.ccache
64+
key: ccache-${{ runner.os }}-${{ matrix.model }}-v1-${{ hashFiles('**/*.c', '**/*.h', 'arch/**', 'drivers/**', 'kernel/**') }}
65+
restore-keys: |
66+
ccache-${{ runner.os }}-${{ matrix.model }}-v1-
67+
68+
- name: Restore toolchain
69+
uses: actions/cache@v4
70+
with:
71+
path: toolchain/neutron_18
72+
key: neutron-toolchain-05012024
73+
74+
- name: Restore kernel build output
75+
uses: actions/cache@v4
76+
with:
77+
path: |
78+
out
79+
build/out
80+
key: kernel-out-${{ runner.os }}-${{ matrix.model }}-v1-${{ hashFiles('build.sh', 'Makefile', 'arch/**', 'init/**') }}
81+
restore-keys: |
82+
kernel-out-${{ runner.os }}-${{ matrix.model }}-v1-
83+
5384
- name: Build kernel
5485
run: |
5586
chmod +x build.sh

COPYING

Lines changed: 0 additions & 356 deletions
This file was deleted.

0 commit comments

Comments
 (0)