Skip to content

Commit 3d460ec

Browse files
committed
adding ci files
1 parent 19272b3 commit 3d460ec

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/kernel_build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: blktests-ci
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-kernel:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Configure git
11+
run: |
12+
git config --global --add safe.directory '*'
13+
- name: Checkout git
14+
run: |
15+
sudo apt-get install -y libelf-dev
16+
mkdir -p linux
17+
cd linux
18+
git init
19+
git remote add origin https://github.com/${{ github.repository }}
20+
git fetch origin --depth=5 ${{ github.event.pull_request.head.sha }}
21+
git reset --hard ${{ github.event.pull_request.head.sha }}
22+
git log -1
23+
- name: Build kernel
24+
run: |
25+
cd linux
26+
make defconfig
27+
make -j 8
28+

0 commit comments

Comments
 (0)