Prepare workflows

This commit is contained in:
Christopher Schnick 2022-03-10 19:38:57 +01:00
parent 4ba3687dc8
commit 770d7be208
12 changed files with 114 additions and 3 deletions

31
.github/workflows/api-build.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Build
on: []
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-20.04,
# macos-10.15,
windows-2022
]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :api:clean :api:build

28
.github/workflows/api-publish.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Build
on: []
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :api:clean :api:build
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: api
path: build/libs

31
.github/workflows/core-build.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-20.04,
# macos-10.15,
windows-2022
]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '17'
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Execute build
run: ./gradlew :core:clean :core:build

View file

@ -19,3 +19,4 @@ repository, which is shared between all components and integrated as a git submo
Some unit tests depend on a connection to an X-Pipe daemon to properly function. Some unit tests depend on a connection to an X-Pipe daemon to properly function.
To launch the installed daemon, it is required that the `XPIPE_HOME` environment variable To launch the installed daemon, it is required that the `XPIPE_HOME` environment variable
is set or the `xpipe` / `xpipe.exe` CLI executable is added to the `PATH` variable. is set or the `xpipe` / `xpipe.exe` CLI executable is added to the `PATH` variable.

3
api/README.md Normal file
View file

@ -0,0 +1,3 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.xpipe/api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.xpipe/api)
[![javadoc](https://javadoc.io/badge2/io.xpipe/api/javadoc.svg)](https://javadoc.io/doc/io.xpipe/api)
[![Build Status](https://github.com/xpipe-io/xpipe_java/actions/workflows/api-build.yml/badge.svg)](https://github.com/xpipe-io/xpipe_java/actions/workflows/api-build.yml)

View file

@ -1,3 +1,7 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.xpipe/beacon/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.xpipe/beacon)
[![javadoc](https://javadoc.io/badge2/io.xpipe/beacon/javadoc.svg)](https://javadoc.io/doc/io.xpipe/beacon)
[![Build Status](https://github.com/xpipe-io/xpipe_java/actions/workflows/beacon.yml/badge.svg)](https://github.com/xpipe-io/xpipe_java/actions/workflows/beacon.yml)
## X-Pipe Beacon ## X-Pipe Beacon
The X-Pipe beacon component is responsible for handling all communications between the X-Pipe daemon The X-Pipe beacon component is responsible for handling all communications between the X-Pipe daemon

View file

@ -36,7 +36,6 @@ public class BeaconServer {
if (print) { if (print) {
System.out.println("Executing custom daemon launch command: " + custom); System.out.println("Executing custom daemon launch command: " + custom);
} }
System.out.println(System.getenv());
var proc = Runtime.getRuntime().exec(custom); var proc = Runtime.getRuntime().exec(custom);
new Thread(null, () -> { new Thread(null, () -> {
try { try {

View file

@ -1,3 +1,8 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.xpipe/core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.xpipe/core)
[![javadoc](https://javadoc.io/badge2/io.xpipe/core/javadoc.svg)](https://javadoc.io/doc/io.xpipe/core)
[![Build Status](https://github.com/xpipe-io/xpipe_java/actions/workflows/core-build.yml/badge.svg)](https://github.com/xpipe-io/xpipe_java/actions/workflows/core-build.yml)
## X-Pipe Core ## X-Pipe Core
The X-Pipe core component contains all the shared core classes used by the API, beacon, and daemon. The X-Pipe core component contains all the shared core classes used by the API, beacon, and daemon.

2
deps

@ -1 +1 @@
Subproject commit 49a1ad06bc6872f72c1d20ea864d24f3df59b7c5 Subproject commit d098dfdee861175ff5b1d5af9e6cbf68e649ade5

View file

@ -1,3 +1,7 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.xpipe/extension/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.xpipe/extension)
[![javadoc](https://javadoc.io/badge2/io.xpipe/extension/javadoc.svg)](https://javadoc.io/doc/io.xpipe/extension)
[![Build Status](https://github.com/xpipe-io/xpipe_java/actions/workflows/extension.yml/badge.svg)](https://github.com/xpipe-io/xpipe_java/actions/workflows/extension.yml)
## X-Pipe Extension API ## X-Pipe Extension API
The X-Pipe extension API allows you to create extensions of any kind for X-Pipe. The X-Pipe extension API allows you to create extensions of any kind for X-Pipe.

View file

@ -27,8 +27,8 @@ repositories {
dependencies { dependencies {
implementation project(':core') implementation project(':core')
implementation project(':fxcomps')
implementation 'io.xpipe:fxcomps:0.1'
implementation 'com.google.code.gson:gson:2.9.0' implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.controlsfx:controlsfx:11.1.1' implementation 'org.controlsfx:controlsfx:11.1.1'
} }

View file

@ -12,6 +12,11 @@ repositories {
mavenCentral() mavenCentral()
} }
// The used X-Pipe API version.
// In your case, you have to fix this value to the target API version,
// which you can find at https://search.maven.org/artifact/io.xpipe/api/
def apiVersion = file('../../version').text
dependencies { dependencies {
implementation project(':core') implementation project(':core')
implementation project(':api') implementation project(':api')