Skip to content

Commit fcd74c2

Browse files
committed
Support for cross build tests
1 parent e34f4b9 commit fcd74c2

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed

.blaze/blaze.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
blaze.dependencies = [
22
"com.fizzed:blaze-ssh"
3-
"com.fizzed:buildx:1.1.0"
3+
"com.fizzed:buildx:1.2.0"
44
"com.fizzed:jne:4.3.0"
55
]
66

.blaze/blaze.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
}

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ The following Java versions and platforms are tested using GitHub workflows:
1717

1818
The following platforms are tested using the [Fizzed, Inc.](http://fizzed.com) build system:
1919

20-
![Linux arm64](https://img.shields.io/badge/Linux%20arm64-passing-green)
21-
![Linux armhf](https://img.shields.io/badge/Linux%20armhf-passing-green)
22-
![Linux armel](https://img.shields.io/badge/Linux%20armel-passing-green)
23-
![Linux riscv64](https://img.shields.io/badge/Linux%20riscv64-passing-green)
24-
![Linux MUSL x64](https://img.shields.io/badge/Linux%20MUSL%20x64-passing-green)
25-
![Linux MUSL arm64](https://img.shields.io/badge/Linux%20MUSL%20arm64-passing-green)
26-
![MacOS x64](https://img.shields.io/badge/MacOS%20x64-passing-green)
27-
![Windows arm64](https://img.shields.io/badge/Windows%20arm64-passing-green)
28-
![FreeBSD x64](https://img.shields.io/badge/FreeBSD%20x64-passing-green)
29-
![OpenBSD x64](https://img.shields.io/badge/OpenBSD%20x64-passing-green)
20+
[![Linux arm64](https://img.shields.io/badge/Linux%20arm64-passing-green)](buildx-results.txt)
21+
[![Linux armhf](https://img.shields.io/badge/Linux%20armhf-passing-green)](buildx-results.txt)
22+
[![Linux riscv64](https://img.shields.io/badge/Linux%20riscv64-passing-green)](buildx-results.txt)
23+
[![Linux MUSL x64](https://img.shields.io/badge/Linux%20MUSL%20x64-passing-green)](buildx-results.txt)
24+
[![MacOS x64](https://img.shields.io/badge/MacOS%20x64-passing-green)](buildx-results.txt)
25+
[![Windows arm64](https://img.shields.io/badge/Windows%20arm64-passing-green)](buildx-results.txt)
26+
[![FreeBSD x64](https://img.shields.io/badge/FreeBSD%20x64-passing-green)](buildx-results.txt)
27+
[![OpenBSD x64](https://img.shields.io/badge/OpenBSD%20x64-passing-green)](buildx-results.txt)
3028

3129
## Overview
3230

blaze.jar

208 KB
Binary file not shown.

buildx-results.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Buildx Results
2+
--------------
3+
Cross platform tests use the Buildx project: https://github.com/fizzed/buildx
4+
Commit: e34f4b9da934b36f4b0f6cdbbb57a3a33985d006
5+
Date: 2025-01-10T20:04:32.605669Z[UTC]
6+
7+
linux-riscv64 success
8+

0 commit comments

Comments
 (0)