Skip to content

Update README.md

Update README.md #39

name: Run Tensorflow 1 and Tensorflow 2 models
on:
push:
branches:
- main
pull_request:
branches: [ main ]
jobs:
build-and-run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest] # macos-10.15,
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: Build with Maven
run: mvn package shade:shade
- name: Run ExampleLoadTensorflow1Tensorflow2.java file
shell: bash
run: |
if [[ "$OSTYPE" == "win"* ]]; then
java -cp target\\dl-modelrunner-0.3.13-SNAPSHOT.jar io.bioimage.modelrunner.example.ExampleLoadTensorflow1Tensorflow2
else
java -cp target/dl-modelrunner-0.3.13-SNAPSHOT.jar io.bioimage.modelrunner.example.ExampleLoadTensorflow1Tensorflow2
fi