@@ -292,14 +292,39 @@ public void cross_build_natives() throws Exception {
292292 });
293293 }
294294
295- @ Task (order = 53 )
295+ /* @Task(order = 53)
296296 public void cross_tests() throws Exception {
297297 new Buildx(crossTargets)
298298 .tags("test")
299299 .execute((target, project) -> {
300300 project.action("java", "-jar", "blaze.jar", "test")
301301 .run();
302302 });
303+ }*/
304+
305+ private final List <Target > crossTestTargets = asList (
306+ new Target ("linux" , "x64" ).setTags ("test" ).setHost ("bmh-build-x64-linux-latest" ),
307+ new Target ("linux" , "arm64" ).setTags ("test" ).setHost ("bmh-build-arm64-linux-latest" ),
308+ new Target ("linux" , "riscv64" ).setTags ("test" ).setHost ("bmh-build-riscv64-linux-latest" ),
309+ new Target ("linux" , "armhf" ).setTags ("test" ).setHost ("bmh-build-armhf-linux-latest" ),
310+ new Target ("linux_musl" , "x64" ).setTags ("test" ).setHost ("bmh-build-x64-linux-musl-latest" ),
311+ new Target ("macos" , "x64" ).setTags ("test" ).setHost ("bmh-build-x64-macos-latest" ),
312+ new Target ("macos" , "arm64" ).setTags ("test" ).setHost ("bmh-build-arm64-macos-latest" ),
313+ new Target ("windows" , "x64" ).setTags ("test" ).setHost ("bmh-build-x64-windows-latest" ),
314+ new Target ("windows" , "arm64" ).setTags ("test" ).setHost ("bmh-build-arm64-windows-latest" ),
315+ new Target ("freebsd" , "x64" ).setTags ("test" ).setHost ("bmh-build-x64-freebsd-latest" )
316+ // openbsd
317+ //new Target("openbsd", "x64").setTags("test").setHost("bmh-build-x64-openbsd-latest")
318+ );
319+
320+ @ Task (order = 53 )
321+ public void cross_tests () throws Exception {
322+ new Buildx (crossTestTargets )
323+ .tags ("test" )
324+ .execute ((target , project ) -> {
325+ project .action ("mvn" , "clean" , "test" )
326+ .run ();
327+ });
303328 }
304329
305330}
0 commit comments