File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ tags :
8
+ - " *-[0-9]+.*"
9
+ pull_request :
10
+ branches :
11
+ - main
12
+
13
+ jobs :
14
+ build-and-run :
15
+ runs-on : ${{ matrix.os }}
16
+ strategy :
17
+ matrix :
18
+ os : [macos-latest, macos-11]
19
+ fail-fast : false
20
+ steps :
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v2
23
+ - name : Set up JDK 11
24
+ uses : actions/setup-java@v3
25
+ with :
26
+ distribution : ' zulu' # See 'Supported distributions' for available options
27
+ java-version : ' 11'
28
+ - name : Generate Classpath (Unix)
29
+ run : |
30
+ mvn clean install org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade -Dshade.mainClass=io.bioimage.modelrunner.pytorch.PytorchInterface
31
+
32
+
33
+ - name : Run Specific Class (Unix)
34
+ shell : bash
35
+ run : |
36
+ java -cp $JAR_PATH io.bioimage.modelrunner.pytorch.PytorchInterface
You can’t perform that action at this time.
0 commit comments