Skip to content

Commit dcacef7

Browse files
committed
ci(actions): add custom config + build workflow
1 parent c005d43 commit dcacef7

3 files changed

Lines changed: 4221 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'build'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/*
8+
- hotfix/*
9+
pull_request: {}
10+
workflow_call: {}
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Update
22+
run: |
23+
sudo apt-get update -yqq
24+
sudo apt-get install bc -yqq
25+
- name: Build Kernel
26+
run: |
27+
sudo bash build-kernel
28+
cp linux-msft-wsl-*/vmlinux .
29+
- name: Upload Kernel
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: vmlinux
33+
path: vmlinux

build-kernel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ git_ver_fn()
295295
git_ver_fn 'microsoft/WSL2-Linux-Kernel' '1' 'R'
296296
if build 'wsl2-linux-kernel' "$g_ver"; then
297297
download "$g_url" "$g_ver.tar.gz"
298-
echo 'yes' | make KCONFIG_CONFIG=Microsoft/config-wsl -j "$cpu_cores"
298+
echo 'yes' | make KCONFIG_CONFIG=../config-wsl -j "$cpu_cores"
299299
build_done 'wsl2-linux-kernel' "$g_ver"
300300
fi
301301

0 commit comments

Comments
 (0)