-
Notifications
You must be signed in to change notification settings - Fork 24
86 lines (73 loc) · 2.47 KB
/
Copy pathci.yml
File metadata and controls
86 lines (73 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Java CI with Ant
on:
push:
branches: [ master, development, experimental ]
pull_request:
branches: [ master, development, experimental ]
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, windows-2022, macos-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: 'adopt'
- name: Install dependencies (macOS)
if: ${{ contains(matrix.runs-on, 'macos') }}
run: |
brew install subversion
- name: Install dependencies (Ubuntu)
if: ${{ contains(matrix.runs-on, 'ubuntu') }}
run: sudo apt-get install -y subversion
- name: Set up env
run: |
mkdir temp
# Get one OSB project required for running tests
mkdir osb/cerebellum
mkdir osb/cerebellum/cerebellar_granule_cell
git clone https://github.com/OpenSourceBrain/GranuleCell.git osb/cerebellum/cerebellar_granule_cell/GranuleCell
echo Set up additional folders...
ls
- name: Test subversion on windows
if: ${{ contains(matrix.runs-on, 'windows') }}
shell: pwsh
run: |
choco install svn
echo "C:\Program Files (x86)\Subversion\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
refreshenv
svn --version
- name: Build project and run tests (non Win)
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
./updatenC.sh # Pull other repos, e.g. NeuroML v1 examples from SourceForge
# make
./nC.sh -make
# Rebuild & perform a number of tests with ant
ant testcore
# Print the version info
./nC.sh -v
- name: Build project and run tests (Win)
if: ${{ matrix.runs-on == 'windows-latest' }}
run: |
./updatenC.bat # Pull other repos, e.g. NeuroML v1 examples from SourceForge
echo "Everything pulled..."
# make
./nC.bat -make
# Rebuild & perform a number of tests with ant
ant testcore
# Print the version info
./nC.bat -v
shell: bash