Skip to content

Commit 7059bfe

Browse files
committed
RISC-V: add build spec for native builds
This commit adds a RISC-V native build spec for CI testing. This is intended to run on Eclipse CBI [1]. [1]: https://github.com/eclipse-cbi/cbi/wiki#whats-provided
1 parent ad265f2 commit 7059bfe

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

buildenv/jenkins/omrbuild.groovy

+27-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ SPECS = [
161161
'junitPublish' : true
162162
],
163163
'linux_riscv64_cross' : [
164-
'alias': 'riscv',
164+
'alias': 'riscv_cross',
165165
'label' : 'compile:riscv64:cross',
166166
'reference' : defaultReference,
167167
'environment' : [
@@ -180,6 +180,32 @@ SPECS = [
180180
'testArgs' : '',
181181
'junitPublish' : true
182182
],
183+
'linux_riscv64' : [
184+
'alias': 'riscv',
185+
'label' : 'hw.arch.riscv64',
186+
'reference' : defaultReference,
187+
'environment' : [
188+
'PATH+CCACHE=/usr/lib/ccache/',
189+
/*
190+
* As of now, native RISC-V build agents are running as a Docker containers
191+
* so we need to set OMR_RUNNING_IN_DOCKER even though the build itself does not
192+
* use Docker. Otherwise sysinfo_is_running_in_container would fail.
193+
*/
194+
'OMR_RUNNING_IN_DOCKER=1'
195+
],
196+
'ccache' : true,
197+
'buildSystem' : 'cmake',
198+
'builds' : [
199+
[
200+
'buildDir' : cmakeBuildDir,
201+
'configureArgs' : '-Wdev -C../cmake/caches/Travis.cmake',
202+
'compile' : defaultCompile
203+
]
204+
],
205+
'test' : true,
206+
'testArgs' : '',
207+
'junitPublish' : true
208+
],
183209
'linux_x86' : [
184210
'alias': 'x32linux',
185211
'label' : 'compile:xlinux',

0 commit comments

Comments
 (0)