34
34
MATRIX_EVAL : " CC=gcc-13 && CXX=g++-13"
35
35
36
36
jobs :
37
- Build :
38
- name : ' B: Building VtR'
39
- runs-on : ubuntu-24.04
40
- strategy :
41
- fail-fast : false
42
- matrix :
43
- include :
44
- - { build_type: 'debug', verbose: '0' }
45
- - { build_type: 'debug', verbose: '1' }
46
- steps :
47
-
48
- - uses : actions/setup-python@v5
49
- with :
50
- python-version : 3.12.3
51
- - uses : actions/checkout@v4
52
- with :
53
- submodules : ' true'
54
-
55
- - name : Get number of CPU cores
56
- uses : SimenB/github-actions-cpu-cores@v2
57
- id : cpu-cores
58
-
59
- - name : Install dependencies
60
- run : ./.github/scripts/install_dependencies.sh
61
-
62
- -
uses :
hendrikmuhs/[email protected]
63
-
64
- - name : Test
65
- env :
66
- BUILD_TYPE : ${{ matrix.build_type }}
67
- NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
68
- run : |
69
- export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
70
- ./.github/scripts/build.sh VERBOSE=${{ matrix.verbose }}
71
-
72
-
73
37
BuildVTR :
74
38
name : ' B: Building VTR Release'
75
39
runs-on : ubuntu-24.04
108
72
path : build.tar.gz
109
73
retention-days : 1
110
74
75
+ # FIXME: This is not needed. Remove.
111
76
- name : Print CCache Statistics
112
77
run : |
113
78
ccache -s
@@ -136,6 +101,7 @@ jobs:
136
101
BUILD_TYPE : release
137
102
NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
138
103
run : |
104
+ sudo sysctl -w vm.mmap_rnd_bits=28
139
105
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
140
106
make -j${{ steps.cpu-cores.outputs.count}}
141
107
@@ -220,18 +186,15 @@ jobs:
220
186
- name : Install dependencies
221
187
run : ./.github/scripts/install_dependencies.sh
222
188
223
- - name : Download Build Artifact
224
- uses : actions/download-artifact@v4
225
- with :
226
- name : build-release.tar.gz
227
-
228
- - name : Unpack Build
229
- shell : bash
230
- run : |
231
- tar -xvzf build.tar.gz
189
+ - name : ' ccache'
190
+ uses :
hendrikmuhs/[email protected]
232
191
233
192
- name : Test
193
+ env :
194
+ CMAKE_PARAMS : " -DVTR_ASSERT_LEVEL=3"
195
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
234
196
run : |
197
+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
235
198
make test -j${{ steps.cpu-cores.outputs.count }}
236
199
237
200
@@ -240,6 +203,7 @@ jobs:
240
203
# that these build variations are warning clean.
241
204
BuildVariations :
242
205
runs-on : ubuntu-24.04
206
+ needs : [BuildVTR]
243
207
name : ' B: Build Variations'
244
208
env :
245
209
# For the CI, we want all build variations to be warning clean.
@@ -349,7 +313,7 @@ jobs:
349
313
name : ' Strong' ,
350
314
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_IPO_BUILD=off -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on' ,
351
315
suite : ' vtr_reg_strong' ,
352
- extra_pkgs : " libeigen3-dev "
316
+ extra_pkgs : " "
353
317
}
354
318
]
355
319
name : ' R: ${{ matrix.name }}'
@@ -496,6 +460,7 @@ jobs:
496
460
497
461
Sanitized :
498
462
runs-on : ubuntu-24.04
463
+ needs : [BuildVTRWithOdin]
499
464
strategy :
500
465
fail-fast : false
501
466
matrix :
@@ -654,6 +619,7 @@ jobs:
654
619
655
620
Compatibility :
656
621
runs-on : ubuntu-24.04
622
+ needs : [BuildVTR]
657
623
strategy :
658
624
fail-fast : false
659
625
matrix :
@@ -697,6 +663,7 @@ jobs:
697
663
JammyCompatibility :
698
664
name : ' Ubuntu Jammy - 22.04 Compatibility Test'
699
665
runs-on : ubuntu-22.04
666
+ needs : [BuildVTR]
700
667
steps :
701
668
- uses : actions/setup-python@v5
702
669
with :
@@ -728,7 +695,6 @@ jobs:
728
695
Coverity :
729
696
name : ' Coverity Scan'
730
697
needs :
731
- - Build
732
698
- Format
733
699
- VerifyTestSuites
734
700
- UnitTests
0 commit comments