Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,28 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '16', '17', '19', '21' ]
runs-on: [ubuntu-latest, macos-12, windows-2019] # Note macos-12, not latest/14, due to hdf5 install issue
exclude:
- runs-on: macos-latest
java: "8"
- runs-on: macos-latest
java: "16"
java: [ '8', '11', '17', '19', '21', '25' ]
runs-on: [ubuntu-latest, macos-15-intel, windows-latest] # Note macos-15-intel, not latest/14, due to hdf5 install issue


name: Test on Java ${{ matrix.Java }} on ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.Java }}
distribution: 'temurin'

- name: Install and test (non Win)
env:
main_repo_branch: ${GITHUB_REF_NAME}
if: ${{ matrix.runs-on != 'windows-2019' }}
if: ${{ ! contains(matrix.runs-on, 'windows') }}
run: |
export main_repo_branch=${{env.main_repo_branch}}
if [[ ${main_repo_branch} == "osb_test_master" ]]; then main_repo_branch=master ; fi
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
echo "Using branch $main_repo_branch, current branch is $GITHUB_REF_NAME"

git clone https://github.com/NeuroML/org.neuroml.model.injectingplugin.git
cd org.neuroml.model.injectingplugin
Expand Down Expand Up @@ -72,7 +69,7 @@ jobs:
mvn dependency:tree

- name: Install and test (Win)
if: ${{ matrix.runs-on == 'windows-2019' }}
if: ${{ contains(matrix.runs-on, 'windows') }}
run: |
# Install org.neuroml.model.injectingplugin

Expand Down
Loading