Skip to content

Commit

Permalink
Support for cross build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed Jan 10, 2025
1 parent e34f4b9 commit fcd74c2
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .blaze/blaze.conf
Original file line number Diff line number Diff line change
@@ -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"
]

Expand Down
27 changes: 26 additions & 1 deletion .blaze/blaze.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,39 @@ public void cross_build_natives() throws Exception {
});
}

@Task(order = 53)
/*@Task(order = 53)
public void cross_tests() throws Exception {
new Buildx(crossTargets)
.tags("test")
.execute((target, project) -> {
project.action("java", "-jar", "blaze.jar", "test")
.run();
});
}*/

private final List<Target> 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();
});
}

}
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file modified blaze.jar
Binary file not shown.
8 changes: 8 additions & 0 deletions buildx-results.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fcd74c2

Please sign in to comment.