@@ -34,14 +34,17 @@ jobs:
3434 | grep '"date"' \
3535 | head -1 \
3636 | awk -F '"' '{print $(NF-1)}')"
37+ echo "The last WSL2 Kernel commit date is: $WSL_DATE"
3738 LAST_DATE=$( wget -q https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest -O - \
3839 | awk -F \" -v RS="," '/published_at/ {print $(NF-1)}' ) \
3940 || LAST_DATE="2000.01.01T00:00:00Z"
41+ echo "The last Release in this repo was on: $LAST_DATE"
4042 if [[ $WSL_DATE > $LAST_DATE ]]; then
4143 echo "NEW KERNEL SOURCE!!!!"
4244 echo "# KERNEL UPDATES" > $body
4345 echo >> $body
44- echo $(wget -q https://api.github.com/repos/microsoft/WSL2-Linux-Kernel/releases/latest -O - | awk -F \" -v RS="," '/"body"/ {print $(NF-1)}') >> $body
46+ $text=$(gh api repos/microsoft/WSL2-Linux-Kernel/releases/latest | awk -F \" -v RS="," '/"body"/ {print $(NF-1)}')
47+ echo -e "$text" >> $body
4548 fi
4649 if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
4750 echo "NEW IMPROVEMENT!!!!"
@@ -100,14 +103,22 @@ jobs:
100103
101104 - name : " ⏬ Fetch latest WSL kernel source"
102105 if : env.CANCEL != 'true'
103- run : git clone --depth=1 https://github.com/microsoft/WSL2-Linux-Kernel kernel
106+ run : |
107+ ## Slowwwww....
108+ # git clone --depth=1 https://github.com/microsoft/WSL2-Linux-Kernel kernel
109+
110+ ## FAST!!!
111+ aria2c -s8 https://api.github.com/repos/microsoft/WSL2-Linux-Kernel/zipball -ozipball.zip
112+ 7z x zipball.zip -otemp
113+ mkdir -p kernel
114+ mv temp/*/{*,.[^\.]*} kernel
104115
105116
106117 - name : " ⚙️ Build WSL Kernel for Windows 64 bits"
107118 if : env.CANCEL != 'true'
108119 run : |
109120 cd kernel
110- yes '' | make -j$(($(nproc)*2+1)) KCONFIG_CONFIG=Microsoft/config-wsl || exit 0
121+ yes '' | make -j$(($(nproc)*2+1)) KCONFIG_CONFIG=Microsoft/config-wsl || true
111122
112123 - name : " 📦 Create Package"
113124 if : env.CANCEL != 'true'
0 commit comments