Skip to content

Commit

Permalink
Build extension (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkurt authored Sep 24, 2021
1 parent ad57a87 commit 673236e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 6 deletions.
45 changes: 41 additions & 4 deletions .github/workflows/build_jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
on: [workflow_dispatch]

jobs:
build:
build_lnx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,9 +18,46 @@
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -P toolchain=11
run: ./gradlew shadowjar -P toolchain=11
- uses: actions/upload-artifact@v2
with:
name: libs
path: build/libs
name: linux-x86_64
path: build/libs/*.jar
retention-days: 1

build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt-hotspot'
- name: Build with Gradle
run: gradlew.bat shadowjar -P toolchain=11
shell: cmd
- uses: actions/upload-artifact@v2
with:
name: windows-x86_64
path: build\\libs\\*.jar
retention-days: 1

build_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt-hotspot'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew shadowjar -P toolchain=11
- uses: actions/upload-artifact@v2
with:
name: macosx-x86_64
path: build/libs/*.jar
retention-days: 1
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# QuPath OpenVINO extension

[![GitHub all releases](https://img.shields.io/github/downloads/dkurt/qupath-extension-openvino/total?color=blue)](https://github.com/dkurt/qupath-extension-openvino/releases)

Welcome to the Intel OpenVINO extension for [QuPath](http://qupath.github.io)!

This adds support for inference optimization using [Intel OpenVINO for Java](https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/java_api) into QuPath.


## Building

You can always build this extension from source but you can also download pre-built package from [releases](https://github.com/dkurt/qupath-extension-openvino/releases) page. Choose one for your operating system.

### Extension + dependencies separately

You can build the extension with
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ version = "0.3.0"
import org.gradle.internal.os.OperatingSystem
println 'Operating system: ' + OperatingSystem.current()

def nativesCPP;
dependencies {
def openvinoVersion = "2021.4"
def qupathVersion = "0.3.0"

def nativesCPP
if (OperatingSystem.current().isMacOsX()) {
nativesCPP = 'macosx-x86_64'
} else if (OperatingSystem.current().isLinux()) {
Expand All @@ -60,6 +60,10 @@ dependencies {

}

shadowJar {
classifier = "${nativesCPP}"
}

processResources {
from ("${projectDir}/LICENSE.txt") {
into 'licenses/'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/qupath/ext/openvino/OpenVINOExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public GitHubRepo getRepository() {

@Override
public Version getQuPathVersion() {
return Version.parse("0.3.0-rc2");
return Version.parse("0.3.0");
}


Expand Down

0 comments on commit 673236e

Please sign in to comment.