We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2874653 commit b153a5fCopy full SHA for b153a5f
.github/workflows/ci.yaml
@@ -12,6 +12,11 @@ jobs:
12
matrix:
13
mode: [debug, release]
14
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
20
21
steps:
22
# Setup
@@ -26,7 +31,13 @@ jobs:
26
31
- run: cp .github/workflows/kernel-${{ matrix.mode }}.config .config
27
32
- if: matrix.module == 'loadable'
28
33
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}
30
41
42
# Run
43
- if: matrix.module == 'builtin'
0 commit comments