@@ -58,16 +58,107 @@ jobs:
5858 uses : rlalik/setup-cpp-compiler@master
5959 with :
6060 compiler : ${{ matrix.compiler }}
61- - name : default build
61+ - name : default build with -g
6262 env :
6363 CC : ${{ steps.install_cc.outputs.cc }}
64- run : make -j$(nproc)
64+ run : make OPT_LEVEL=-g -j$(nproc)
65+ if : ${{ always() }}
66+ - name : default build with -Og
67+ env :
68+ CC : ${{ steps.install_cc.outputs.cc }}
69+ run : |
70+ make distclean
71+ make OPT_LEVEL=-Og -j$(nproc)
72+ if : ${{ always() }}
73+ - name : default build with -O0
74+ env :
75+ CC : ${{ steps.install_cc.outputs.cc }}
76+ run : |
77+ make distclean
78+ make OPT_LEVEL=-O0 -j$(nproc)
79+ if : ${{ always() }}
80+ - name : default build with -O1
81+ env :
82+ CC : ${{ steps.install_cc.outputs.cc }}
83+ run : |
84+ make distclean
85+ make OPT_LEVEL=-O1 -j$(nproc)
86+ if : ${{ always() }}
87+ - name : default build with -O2
88+ env :
89+ CC : ${{ steps.install_cc.outputs.cc }}
90+ run : |
91+ make distclean
92+ make OPT_LEVEL=-O2 -j$(nproc)
93+ if : ${{ always() }}
94+ - name : default build with -O3
95+ env :
96+ CC : ${{ steps.install_cc.outputs.cc }}
97+ run : |
98+ make distclean
99+ make OPT_LEVEL=-O3 -j$(nproc)
100+ if : ${{ always() }}
101+ - name : default build with -Ofast
102+ env :
103+ CC : ${{ steps.install_cc.outputs.cc }}
104+ run : |
105+ make distclean
106+ make OPT_LEVEL=-Ofast -j$(nproc)
107+ if : ${{ always() }}
108+ - name : default build for system emulation with -g
109+ env :
110+ CC : ${{ steps.install_cc.outputs.cc }}
111+ run : |
112+ make distclean
113+ make OPT_LEVEL=-g ENABLE_SYSTEM=1 -j$(nproc)
114+ if : ${{ always() }}
115+ - name : default build for system emulation with -Og
116+ env :
117+ CC : ${{ steps.install_cc.outputs.cc }}
118+ run : |
119+ make distclean
120+ make OPT_LEVEL=-Og ENABLE_SYSTEM=1 -j$(nproc)
121+ if : ${{ always() }}
122+ - name : default build for system emulation with -O0
123+ env :
124+ CC : ${{ steps.install_cc.outputs.cc }}
125+ run : |
126+ make distclean
127+ make OPT_LEVEL=-O0 ENABLE_SYSTEM=1 -j$(nproc)
128+ if : ${{ always() }}
129+ - name : default build for system emulation with -O1
130+ env :
131+ CC : ${{ steps.install_cc.outputs.cc }}
132+ run : |
133+ make distclean
134+ make OPT_LEVEL=-O1 ENABLE_SYSTEM=1 -j$(nproc)
135+ if : ${{ always() }}
136+ - name : default build for system emulation with -O2
137+ env :
138+ CC : ${{ steps.install_cc.outputs.cc }}
139+ run : |
140+ make distclean
141+ make OPT_LEVEL=-O2 ENABLE_SYSTEM=1 -j$(nproc)
142+ if : ${{ always() }}
143+ - name : default build for system emulation with -O3
144+ env :
145+ CC : ${{ steps.install_cc.outputs.cc }}
146+ run : |
147+ make distclean
148+ make OPT_LEVEL=-O3 ENABLE_SYSTEM=1 -j$(nproc)
149+ if : ${{ always() }}
150+ - name : default build for system emulation with -Ofast
151+ env :
152+ CC : ${{ steps.install_cc.outputs.cc }}
153+ run : |
154+ make distclean
155+ make OPT_LEVEL=-Ofast ENABLE_SYSTEM=1 -j$(nproc)
65156 if : ${{ always() }}
66157 - name : check + tests
67158 env :
68159 CC : ${{ steps.install_cc.outputs.cc }}
69160 run : |
70- make clean
161+ make distclean
71162 make check -j$(nproc)
72163 make tests -j$(nproc)
73164 make misalign -j$(nproc)
0 commit comments