diff --git a/.blaze/blaze.conf b/.blaze/blaze.conf index 309fd38..8558f42 100644 --- a/.blaze/blaze.conf +++ b/.blaze/blaze.conf @@ -1,6 +1,6 @@ blaze.dependencies = [ "com.fizzed:blaze-ssh" - "com.fizzed:buildx:1.1.0" + "com.fizzed:buildx:1.2.0" "com.fizzed:jne:4.3.0" ] diff --git a/.blaze/blaze.java b/.blaze/blaze.java index 45b175d..5245708 100644 --- a/.blaze/blaze.java +++ b/.blaze/blaze.java @@ -292,7 +292,7 @@ public void cross_build_natives() throws Exception { }); } - @Task(order = 53) + /*@Task(order = 53) public void cross_tests() throws Exception { new Buildx(crossTargets) .tags("test") @@ -300,6 +300,31 @@ public void cross_tests() throws Exception { project.action("java", "-jar", "blaze.jar", "test") .run(); }); + }*/ + + private final List crossTestTargets = asList( + new Target("linux", "x64").setTags("test").setHost("bmh-build-x64-linux-latest"), + new Target("linux", "arm64").setTags("test").setHost("bmh-build-arm64-linux-latest"), + new Target("linux", "riscv64").setTags("test").setHost("bmh-build-riscv64-linux-latest"), + new Target("linux", "armhf").setTags("test").setHost("bmh-build-armhf-linux-latest"), + new Target("linux_musl", "x64").setTags("test").setHost("bmh-build-x64-linux-musl-latest"), + new Target("macos", "x64").setTags("test").setHost("bmh-build-x64-macos-latest"), + new Target("macos", "arm64").setTags("test").setHost("bmh-build-arm64-macos-latest"), + new Target("windows", "x64").setTags("test").setHost("bmh-build-x64-windows-latest"), + new Target("windows", "arm64").setTags("test").setHost("bmh-build-arm64-windows-latest"), + new Target("freebsd", "x64").setTags("test").setHost("bmh-build-x64-freebsd-latest") + // openbsd + //new Target("openbsd", "x64").setTags("test").setHost("bmh-build-x64-openbsd-latest") + ); + + @Task(order = 53) + public void cross_tests() throws Exception { + new Buildx(crossTestTargets) + .tags("test") + .execute((target, project) -> { + project.action("mvn", "clean", "test") + .run(); + }); } } diff --git a/README.md b/README.md index 362732b..b131b9c 100644 --- a/README.md +++ b/README.md @@ -17,16 +17,14 @@ The following Java versions and platforms are tested using GitHub workflows: The following platforms are tested using the [Fizzed, Inc.](http://fizzed.com) build system: -![Linux arm64](https://img.shields.io/badge/Linux%20arm64-passing-green) -![Linux armhf](https://img.shields.io/badge/Linux%20armhf-passing-green) -![Linux armel](https://img.shields.io/badge/Linux%20armel-passing-green) -![Linux riscv64](https://img.shields.io/badge/Linux%20riscv64-passing-green) -![Linux MUSL x64](https://img.shields.io/badge/Linux%20MUSL%20x64-passing-green) -![Linux MUSL arm64](https://img.shields.io/badge/Linux%20MUSL%20arm64-passing-green) -![MacOS x64](https://img.shields.io/badge/MacOS%20x64-passing-green) -![Windows arm64](https://img.shields.io/badge/Windows%20arm64-passing-green) -![FreeBSD x64](https://img.shields.io/badge/FreeBSD%20x64-passing-green) -![OpenBSD x64](https://img.shields.io/badge/OpenBSD%20x64-passing-green) +[![Linux arm64](https://img.shields.io/badge/Linux%20arm64-passing-green)](buildx-results.txt) +[![Linux armhf](https://img.shields.io/badge/Linux%20armhf-passing-green)](buildx-results.txt) +[![Linux riscv64](https://img.shields.io/badge/Linux%20riscv64-passing-green)](buildx-results.txt) +[![Linux MUSL x64](https://img.shields.io/badge/Linux%20MUSL%20x64-passing-green)](buildx-results.txt) +[![MacOS x64](https://img.shields.io/badge/MacOS%20x64-passing-green)](buildx-results.txt) +[![Windows arm64](https://img.shields.io/badge/Windows%20arm64-passing-green)](buildx-results.txt) +[![FreeBSD x64](https://img.shields.io/badge/FreeBSD%20x64-passing-green)](buildx-results.txt) +[![OpenBSD x64](https://img.shields.io/badge/OpenBSD%20x64-passing-green)](buildx-results.txt) ## Overview diff --git a/blaze.jar b/blaze.jar index 5acc29e..d24b673 100644 Binary files a/blaze.jar and b/blaze.jar differ diff --git a/buildx-results.txt b/buildx-results.txt new file mode 100644 index 0000000..bf1f268 --- /dev/null +++ b/buildx-results.txt @@ -0,0 +1,8 @@ +Buildx Results +-------------- +Cross platform tests use the Buildx project: https://github.com/fizzed/buildx +Commit: e34f4b9da934b36f4b0f6cdbbb57a3a33985d006 +Date: 2025-01-10T20:04:32.605669Z[UTC] + +linux-riscv64 success +