test #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*-[0-9]+.*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, macos-11] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' # See 'Supported distributions' for available options | |
java-version: '11' | |
- name: Generate Classpath (Unix) | |
run: | | |
mvn clean install org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade -Dshade.mainClass=io.bioimage.modelrunner.pytorch.PytorchInterface | |
- name: Run Specific Class (Unix) | |
shell: bash | |
run: | | |
java -cp $JAR_PATH io.bioimage.modelrunner.pytorch.PytorchInterface |