Skip to content

Commit 1fa643e

Browse files
authored
Create Pkg
1 parent e658cf1 commit 1fa643e

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/Build-Kernel.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
|| LAST_DATE="2000.01.01T00:00:00Z"
7474
if [[ $WSL_DATE > $LAST_DATE ]]; then
7575
echo "NEW KERNEL SOURCE!!!!"
76-
echo "# KERNEL CHANGES" > body.txt
76+
echo "# KERNEL UPDATES" > body.txt
7777
echo >> body.txt
7878
cat body.txt
7979
fi
@@ -98,30 +98,29 @@ jobs:
9898

9999
- name: "⏬ Fetch latest WSL kernel source"
100100
if: env.CANCEL != 'true'
101-
run: git clone --depth=1 https://github.com/microsoft/WSL2-Linux-Kernel .
101+
run: git clone --depth=1 https://github.com/microsoft/WSL2-Linux-Kernel kernel
102102

103103

104104
- name: "⚙️ Build WSL Kernel for Windows 64 bits"
105105
if: env.CANCEL != 'true'
106-
run: yes '' | make -j$(($(nproc)*2+1)) KCONFIG_CONFIG=Microsoft/config-wsl
106+
run: |
107+
cd kernel
108+
yes '' | make -j$(($(nproc)*2+1)) KCONFIG_CONFIG=Microsoft/config-wsl
107109
108110
- name: "📦 Create Package"
109111
if: env.CANCEL != 'true'
110112
run: |
111-
cd nano
113+
cd kernel
112114
############################
113115
## ##
114116
## CREATE PACKAGE ##
115117
## ##
116118
############################
117-
KERNEL__VERSION=$(make kernelversion)
119+
KERNEL_VERSION=$(make kernelversion)
118120
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
119-
7z a -aoa -- \
120-
"WSLkernel_${KERNEL_VERSION}.7z" \
121-
pkg_{i686,x86_64}-w64-mingw32/{bin/nano.exe,share/{nano,doc}/} \
122-
.nanorc LICENSE README.md || exit 1
123-
mv *.7z ..
124-
cd ..
121+
cp ../install.ps1
122+
cp arch/x86/boot/bzImage WSLk_${KERNEL_VERSION}
123+
7z a -aoa -- "../WSLkernel_${KERNEL_VERSION}.7z" install.ps1 WSLk*
125124
126125
- name: "👍 Upload Artifact"
127126
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)