diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f02cad3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build + +on: + - push + - pull_request + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + name: Checkout repo + + - name: Set up JDK 17 (LTS) + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + cache: maven + + - name: Build with Maven + run: mvn install + + - uses: actions/upload-artifact@v2 + name: Upload Artifact + with: + name: WarmRoast + path: target/warmroast-*.jar \ No newline at end of file diff --git a/README.md b/README.md index 8a0b865..64054b4 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,11 @@ WarmRoast is an easy-to-use CPU sampling tool for JVM applications, but particul * See the percentage of CPU time for each method relative to its parent methods. * Maintains style and function with use of "File -> Save As" (in tested browsers). -**Download Latest Version:** http://builds.enginehub.org/job/warmroast/last-successful/ +### Download -Java 7 and above is required to use WarmRoast. +**Latest release**: [here](../../releases) + +**Latest build**: [here](../../actions/workflows/build.yml) Screenshots ----------- @@ -24,6 +26,14 @@ Screenshots Usage ----- +## For Java 9 and newer + +The `tools.jar` is automatically included into JDK's since Java 9. You only should use something like this: + + java -cp warmroast-1.0.0-SNAPSHOT.jar com.sk89q.warmroast.WarmRoast --thread "Server thread" + +## For Java 7 & 8 + 1. Note the path of your JDK. 2. Download WarmRoast. diff --git a/pom.xml b/pom.xml index fa20ef9..09931e3 100644 --- a/pom.xml +++ b/pom.xml @@ -5,6 +5,7 @@ 1.0.0-SNAPSHOT WarmRoast http://www.sk89q.com + scm:git:git://github.com/sk89q/warmroast.git https://github.com/sk89q/warmroast @@ -101,59 +102,10 @@ - - - com.sun:tools - - - - - tools-default - - true - - ${java.home}/../lib/tools.jar - - - - ${java.home}/../lib/tools.jar - - - - com.sun - tools - 1.6.0 - system - ${toolsJar} - - - - - tools-mac - - false - - ${java.home}/../Classes/classes.jar - - - - ${java.home}/../Classes/classes.jar - - - - com.sun - tools - 1.6.0 - system - ${toolsJar} - - - -