Skip to content

Commit 6d23e96

Browse files
committed
GITHUB: btrfs: add build workflow
1 parent 6137992 commit 6d23e96

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/makefile.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Makefile CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'rebase-*/btrfs-patches'
7+
pull_request:
8+
branches:
9+
- 'rebase-*/btrfs-patches'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Configure minimal kernel
21+
run: make tinyconfig
22+
23+
- name: Configure btrfs
24+
run: |
25+
echo "CONFIG_BLOCK=y" >>.config
26+
echo "CONFIG_BTRFS_FS=y" >>.config
27+
echo "CONFIG_BTRFS_FS_POSIX_ACL=y" >>.config
28+
echo "CONFIG_BTRFS_ALLOCATOR_HINTS=y" >>.config
29+
echo "CONFIG_BTRFS_PER_DEVICE_IO_STATS=y" >>.config
30+
echo "CONFIG_BTRFS_READ_POLICIES=y" >>.config
31+
make oldconfig
32+
33+
- name: Compile kernel
34+
run: make -j$(nproc) all

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,6 @@ sphinx_*/
183183

184184
# Rust analyzer configuration
185185
/rust-project.json
186+
187+
# Allow Github workflows
188+
!/.github

0 commit comments

Comments
 (0)