Skip to content

Commit 698aae9

Browse files
committed
Add workflow for CI
Signed-off-by: inferno0230 <mail@inferno0230.in>
1 parent 2b0e803 commit 698aae9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: WSL2 Kernel
2+
3+
on:
4+
push:
5+
branches:
6+
- linux-msft-wsl-6.6.y
7+
workflow_dispatch:
8+
9+
jobs:
10+
WSL2_Kernel_Build:
11+
name: Build kernel
12+
runs-on: self-hosted
13+
steps:
14+
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
20+
- name: Build Kernel
21+
run: |
22+
./build.sh
23+
echo "RELEASE_NAME=WSL2-Linux-v6.6.$(grep "^SUBLEVEL =" Makefile | awk '{print $3}')-$(date +"%Y%m%d")" >> $GITHUB_ENV
24+
25+
- name: Creating release
26+
run: |
27+
gh release create $RELEASE_NAME --title "$RELEASE_NAME" --notes "" out/${RELEASE_NAME}.zip

0 commit comments

Comments
 (0)