File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 12
12
matrix :
13
13
mode : [debug, release]
14
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
15
20
16
21
steps :
17
22
# Setup
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
31
42
# Run
32
43
- if : matrix.module == 'builtin'
You can’t perform that action at this time.
0 commit comments