Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson authored Dec 2, 2021
1 parent c02a3c5 commit ee66bfd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ jobs:
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
# Install org.neuroml.model.injectingplugin
export main_repo_branch=${GITHUB_REF##*/}
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
export main_repo_branch=${GITHUB_REF##*/}
echo Using branch $main_repo_branch
git clone https://github.com/NeuroML/NeuroML2.git
cd NeuroML2
git checkout $main_repo_branch
Expand All @@ -58,18 +59,22 @@ jobs:
if: ${{ matrix.runs-on == 'windows-latest' }}
run: |
# Install org.neuroml.model.injectingplugin
echo Using branch $env:GITHUB_REF_NAME
$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:GITHUB_REF_NAME
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:GITHUB_REF_NAME
git checkout $env:main_repo_branch
mvn install
cd ..
Expand Down

0 comments on commit ee66bfd

Please sign in to comment.