Skip to content

Commit b153a5f

Browse files
committed
CI: test O= builds too
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 2874653 commit b153a5f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
matrix:
1313
mode: [debug, release]
1414
module: [builtin, loadable]
15+
outputdir: [src, build]
16+
17+
env:
18+
BUILD_DIR: build
19+
MAKE_FLAGS: CC=clang-10 LLVM_CONFIG_PATH=llvm-config-10 -j3
1520

1621
steps:
1722
# Setup
@@ -26,7 +31,13 @@ jobs:
2631
- run: cp .github/workflows/kernel-${{ matrix.mode }}.config .config
2732
- if: matrix.module == 'loadable'
2833
run: sed -i -E 's/^(CONFIG_RUST_EXAMPLE=)(y)$/\1m/g' .config
29-
- run: make CC=clang-10 LLVM_CONFIG_PATH=llvm-config-10 -j3
34+
- if: matrix.outputdir == 'src'
35+
run: make ${MAKE_FLAGS}
36+
- if: matrix.outputdir == 'build'
37+
run: |
38+
mkdir ${BUILD_DIR}
39+
mv .config ${BUILD_DIR}/.config
40+
make ${MAKE_FLAGS} O=${BUILD_DIR}
3041
3142
# Run
3243
- if: matrix.module == 'builtin'

0 commit comments

Comments
 (0)