Skip to content

Commit 7a56902

Browse files
committed
update new file
0 parents  commit 7a56902

File tree

9 files changed

+29543
-0
lines changed

9 files changed

+29543
-0
lines changed

.github/workflows/build.yml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: auto build engine
2+
3+
on:
4+
release:
5+
types: [published]
6+
schedule:
7+
- cron: "0 16 * * *"
8+
push:
9+
branches:
10+
- master
11+
watch:
12+
types: [started]
13+
14+
jobs:
15+
build-mainline:
16+
runs-on: ubuntu-24.04
17+
18+
steps:
19+
- name: Install ccache
20+
uses: hendrikmuhs/ccache-action@main
21+
with:
22+
key: build-mainline
23+
max-size: 2048M
24+
evict-old-files: 1d
25+
26+
- name: Install build depedencies
27+
run: |
28+
sudo apt update
29+
sudo apt install -y flex bison libelf-dev dwarves
30+
31+
- name: Bulid kernel
32+
run: |
33+
git clone https://github.com/torvalds/linux.git --depth 1 linux
34+
#git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1 linux
35+
#git clone https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git -b for-kbuild-bot/current-stable --depth 1 linux
36+
wget --no-check-certificate https://raw.githubusercontent.com/ActiveIce/WSL2-Linux-Kernel/master/dxgkrnl.patch
37+
wget --no-check-certificate https://raw.githubusercontent.com/ActiveIce/WSL2-Linux-Kernel/master/fix.patch
38+
pushd linux
39+
patch ../dxgkrnl.patch < ../fix.patch
40+
git apply ../dxgkrnl.patch --reject
41+
#git apply ../fix.patch --reject
42+
#dxgkrnl patch fix commit
43+
#120ae58593630819209a011a3f9c89f73bcc9894
44+
#0069455bcbf9ea73ffe4553ed6d2b4e4cad703de
45+
wget --no-check-certificate -P Microsoft https://raw.githubusercontent.com/microsoft/WSL2-Linux-Kernel/linux-msft-wsl-6.6.y/arch/x86/configs/config-wsl
46+
#scripts/config --disable PREEMPT_NONE
47+
#scripts/config --enable PREEMPT_RT
48+
make -j$(nproc) KCONFIG_CONFIG=Microsoft/config-wsl LOCALVERSION="" CC="ccache gcc"
49+
cp ./arch/x86/boot/bzImage ./arch/x86/boot/bzImage-mainline
50+
popd
51+
52+
- name: Upload kernel
53+
uses: actions/upload-artifact@main
54+
with:
55+
name: bzImage-mainline
56+
path: linux/arch/x86/boot/bzImage-mainline
57+
58+
build-msft:
59+
runs-on: ubuntu-24.04
60+
61+
steps:
62+
- name: Install ccache
63+
uses: hendrikmuhs/ccache-action@main
64+
with:
65+
key: build-msft
66+
max-size: 2048M
67+
evict-old-files: 1d
68+
69+
- name: Install build depedencies
70+
run: |
71+
sudo apt update
72+
sudo apt install -y flex bison libelf-dev dwarves
73+
74+
- name: Bulid kernel
75+
run: |
76+
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1
77+
pushd WSL2-Linux-Kernel
78+
make -j$(nproc) KCONFIG_CONFIG=Microsoft/config-wsl LOCALVERSION="" CC="ccache gcc"
79+
popd
80+
81+
- name: Upload kernel
82+
uses: actions/upload-artifact@main
83+
with:
84+
name: bzImage
85+
path: WSL2-Linux-Kernel/arch/x86/boot/bzImage
86+
87+
push:
88+
needs: [build-mainline, build-msft]
89+
runs-on: ubuntu-24.04
90+
91+
steps:
92+
- name: Checkout
93+
uses: actions/checkout@main
94+
95+
- name: Clean
96+
run: |
97+
rm bzImage*
98+
99+
- name: Download mainline kernel
100+
uses: actions/download-artifact@main
101+
with:
102+
name: bzImage-mainline
103+
path: ./
104+
105+
- name: Download msft kernel
106+
uses: actions/download-artifact@main
107+
with:
108+
name: bzImage
109+
path: ./
110+
111+
- name: Commit
112+
run: |
113+
git config --global user.email "[email protected]"
114+
git config --global user.name "GitHub Actions"
115+
git checkout --orphan new_branch
116+
git add -A
117+
git commit -am "update new file"
118+
git branch -D master
119+
git branch -m master
120+
git push origin master --force

0 commit comments

Comments
 (0)