Commit c146800 1 parent 7881b81 commit c146800 Copy full SHA for c146800
File tree 1 file changed +24
-10
lines changed
1 file changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,30 @@ jobs:
12
12
cxx : g++
13
13
- c : clang
14
14
cxx : clang++
15
- build_config :
15
+ build_type : [Debug, Release]
16
+ lto_config :
17
+ - lto : false
18
+ full_lto : false
19
+ - lto : true
20
+ full_lto : false
21
+ - lto : true
22
+ full_lto : true
23
+ exclude :
24
+ # Don't try to build Debug with LTO enabled
16
25
- build_type : Debug
17
- lto : false
18
- - build_type : Release
19
- lto : false
20
- - build_type : Release
21
- lto : true
26
+ lto_config :
27
+ lto : true
28
+ # GCC doesn't have a thin LTO mode
29
+ - compilers :
30
+ c : gcc
31
+ cxx : g++
32
+ build_type : Release
33
+ lto_config :
34
+ lto : true
35
+ full_lto : false
22
36
23
37
env :
24
- LTO_CONFIG : ${{ matrix.build_config.lto && '- DFULL_LTO=1' || '' }}
38
+ LTO_CONFIG : ${{ format('-DNO_STF_LTO={0} - DFULL_LTO={1}', !matrix.lto_config.lto, matrix.lto_config.full_lto) }}
25
39
26
40
runs-on : ubuntu-latest
27
41
@@ -38,12 +52,12 @@ jobs:
38
52
39
53
- name : Configure CMAKE
40
54
working-directory : ${{runner.workspace}}/build
41
- run : CC=${{ matrix.compilers.c }} CXX=${{ matrix.compilers.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_config. build_type }} -DBUILD_STF_PYTHON_LIB=ON $LTO_CONFIG
55
+ run : CC=${{ matrix.compilers.c }} CXX=${{ matrix.compilers.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_STF_PYTHON_LIB=ON $LTO_CONFIG
42
56
43
57
- name : Build
44
58
working-directory : ${{runner.workspace}}/build
45
- run : cmake --build . --config ${{ matrix.build_config. build_type }} -j 4
59
+ run : cmake --build . --config ${{ matrix.build_type }} -j 4
46
60
47
61
- name : Regress
48
62
working-directory : ${{runner.workspace}}/build
49
- run : cmake --build . --config ${{ matrix.build_config. build_type }} -j 4 --target regress
63
+ run : cmake --build . --config ${{ matrix.build_type }} -j 4 --target regress
You can’t perform that action at this time.
0 commit comments