Changes for NeuroML v2.3.1 release #81
This file contains 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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ master, development, experimental, osb* ] | |
pull_request: | |
branches: [ master, development, experimental, osb* ] | |
jobs: | |
build_and_test: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ '8', '11', '16', '17', '19', '21' ] | |
runs-on: [ubuntu-latest, macos-12, windows-latest] | |
exclude: | |
- runs-on: macos-latest | |
java: "8" | |
- runs-on: macos-latest | |
java: "16" | |
name: Test on Java ${{ matrix.Java }} on ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.Java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.Java }} | |
distribution: 'temurin' | |
- name: Install HDF5 on macos-latest (v14) | |
if: ${{ matrix.runs-on == 'macos-latest' }} | |
run: | | |
brew install hdf5 | |
- name: Install and test (non Win) | |
env: | |
main_repo_branch: ${GITHUB_REF_NAME} | |
if: ${{ matrix.runs-on != 'windows-latest' }} | |
run: | | |
# Install org.neuroml.model.injectingplugin | |
export main_repo_branch=${{env.main_repo_branch}} | |
if [[ ${main_repo_branch} != "master" && ${main_repo_branch} != "development" && ${main_repo_branch} != "experimental" && ${main_repo_branch} != *"osb"* ]]; then main_repo_branch=development ; fi | |
echo Using branch $main_repo_branch | |
git clone https://github.com/NeuroML/org.neuroml.model.injectingplugin.git | |
cd org.neuroml.model.injectingplugin | |
git checkout $main_repo_branch | |
mvn install | |
cd .. | |
# Install NeuroML2 | |
git clone https://github.com/NeuroML/NeuroML2.git | |
cd NeuroML2 | |
git checkout $main_repo_branch | |
mvn install | |
cd .. | |
# Install this package and test with Maven | |
pwd | |
mvn install | |
mvn dependency:tree | |
- name: Install and test (Win) | |
if: ${{ matrix.runs-on == 'windows-latest' }} | |
run: | | |
# Install org.neuroml.model.injectingplugin | |
$env:main_repo_branch=$env:GITHUB_REF_NAME | |
if ( $env:main_repo_branch -ne "master" -and $env:main_repo_branch -ne "development" -and $env:main_repo_branch -ne "experimental" -and $env:main_repo_branch -notlike '*osb*' ) { $env:main_repo_branch="development" } | |
echo "Using branch $env:main_repo_branch..." | |
git clone https://github.com/NeuroML/org.neuroml.model.injectingplugin.git | |
cd org.neuroml.model.injectingplugin | |
git checkout $env:main_repo_branch | |
mvn install | |
cd .. | |
# Install NeuroML2 | |
echo Using branch $env:GITHUB_REF_NAME | |
git clone https://github.com/NeuroML/NeuroML2.git | |
cd NeuroML2 | |
git checkout $env:main_repo_branch | |
mvn install | |
cd .. | |
# Install this package and test with Maven | |
pwd | |
mvn install | |
mvn dependency:tree |