Skip to content

Commit 89228dc

Browse files
committed
made build.sh
1 parent b44dcbc commit 89228dc

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

.github/workflows/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
wget -q -i kernel-url -O kernel.tar.xz
2+
mkdir -p kext
3+
tar -xf kernel.tar.xz -C kext --strip-components=1
4+
rsync -av .config kext/
5+
rsync -av fw kext/
6+
cd kext
7+
make olddefconfig
8+
make -j$(nproc)

.github/workflows/kbuild.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,17 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v3
15-
16-
- name: Log Change
17-
run: |
18-
echo "runner has been modified. Processing changes..."
19-
2015
- name: Install wget and dependencies
2116
run: |
2217
sudo apt-get update
2318
sudo apt-get install -y wget tar libncurses-dev bison flex libssl-dev libelf-dev bc zstd unzip rsync
2419
25-
26-
# Download, extract, and build kernel, always running make
2720
- name: Download, extract, and build kernel
2821
run: |
29-
# Download the kernel source only if it's not cached
30-
if [ ! -d "kext" ]; then
31-
wget -q -i kernel-url -O kernel.tar.xz
32-
mkdir -p kext
33-
tar -xf kernel.tar.xz -C kext --strip-components=1
34-
fi
35-
36-
# Copy the .config file and update configuration
37-
rsync -av .config kext/
38-
rsync -av fw kext/
39-
cd kext
40-
41-
# Run make every time, even if cached
42-
make olddefconfig
43-
make -j$(nproc)
22+
bash build.sh
4423
4524
- name: Set dynamic tag version
4625
run: |
47-
# Generate a dynamic tag using commit SHA or other unique identifier
4826
VERSION="v$(date +'%Y%m%d%H%M%S')" # Format: vYYYYMMDDHHMMSS
4927
echo "VERSION=${VERSION}" >> $GITHUB_ENV
5028

0 commit comments

Comments
 (0)