diff --git a/.blaze/blaze.conf b/.blaze/blaze.conf new file mode 100644 index 0000000..d81b554 --- /dev/null +++ b/.blaze/blaze.conf @@ -0,0 +1,7 @@ +blaze.dependencies = [ + "com.fizzed:blaze-ssh" + "com.fizzed:buildx:1.0.7" + "com.fizzed:jne:4.1.1" +] + +java.source.version = 8 diff --git a/.blaze/blaze.java b/.blaze/blaze.java new file mode 100644 index 0000000..762c25f --- /dev/null +++ b/.blaze/blaze.java @@ -0,0 +1,50 @@ +import com.fizzed.blaze.Config; +import com.fizzed.blaze.Contexts; +import com.fizzed.blaze.Task; +import com.fizzed.buildx.Buildx; +import com.fizzed.buildx.ContainerBuilder; +import com.fizzed.buildx.Target; +import com.fizzed.jne.*; +import org.slf4j.Logger; + +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.List; + +import static com.fizzed.blaze.Contexts.withBaseDir; +import static com.fizzed.blaze.Systems.*; +import static com.fizzed.blaze.util.Globber.globber; +import static java.util.Arrays.asList; +import static java.util.Optional.ofNullable; + +public class blaze { + private final Logger log = Contexts.logger(); + private final Config config = Contexts.config(); + private final Path projectDir = withBaseDir("../").toAbsolutePath(); + private final NativeTarget localNativeTarget = NativeTarget.detect(); + private final Path nativeDir = projectDir.resolve("native"); + private final Path targetDir = projectDir.resolve("target"); + + private final List crossTargets = asList( + new Target("linux", "x64").setTags("test").setHost("build-x64-linux-latest"), + new Target("linux", "arm64").setTags("test").setHost("build-arm64-linux-latest"), + new Target("linux", "riscv64").setTags("test").setHost("build-riscv64-linux-latest"), + new Target("macos", "x64").setTags("test").setHost("build-x64-macos-latest"), + new Target("macos", "arm64").setTags("test").setHost("build-arm64-macos-latest"), + new Target("windows", "x64").setTags("test").setHost("build-x64-windows-latest"), + new Target("windows", "arm64").setTags("test").setHost("build-arm64-windows-latest"), + new Target("freebsd", "x64").setTags("test").setHost("build-x64-freebsd-latest"), + new Target("openbsd", "x64").setTags("test").setHost("build-x64-openbsd-latest") + ); + + @Task(order = 1) + public void cross_tests() throws Exception { + new Buildx(crossTargets) + .tags("test") + .execute((target, project) -> { + project.action("mvn", "test") + .run(); + }); + } + +} diff --git a/.blaze/pom.xml b/.blaze/pom.xml new file mode 100644 index 0000000..f0b02ab --- /dev/null +++ b/.blaze/pom.xml @@ -0,0 +1,79 @@ + + 4.0.0 + blaze + tokyocabinet-blaze + 0.0.1 + + + + + 8 + 8 + true + true + + + ${project.basedir} + + + + com.fizzed + blaze-ivy + 1.5.0 + + + commons-io + commons-io + 2.11.0 + + + org.slf4j + slf4j-api + 2.0.7 + + + com.typesafe + config + 1.3.0 + + + org.apache.ivy + ivy + 2.5.2 + + + com.fizzed + blaze-core + 1.5.0 + + + org.slf4j + slf4j-simple + 2.0.7 + + + org.zeroturnaround + zt-exec + 1.12 + + + com.fizzed + blaze-ssh + 1.5.0 + + + com.fizzed + buildx + 1.0.7 + + + com.fizzed + jne + 4.1.1 + + + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 08a37f3..ff911c8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ ninja-upstream .vagrant .idea *.iml +.buildx diff --git a/blaze.jar b/blaze.jar new file mode 100644 index 0000000..d24b673 Binary files /dev/null and b/blaze.jar differ