-
Notifications
You must be signed in to change notification settings - Fork 12
70 lines (54 loc) · 2.17 KB
/
octave.yml
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
name: Octave Tests
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
sudo apt-get update && sudo apt-get install -y \
octave liboctave-dev && \
octave --version
- name: Compile GIfTI MEX files
run: make -C @gifti/private PLATFORM=octave
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"
windows:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
choco install octave.portable
octave --version
- name: Compile GIfTI MEX files
run: octave --no-gui --no-window-system --silent --eval "system ('make -C @gifti/private PLATFORM=octave');"
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"
macos:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
brew install octave # https://formulae.brew.sh/formula/octave
octave --version
- name: Compile GIfTI MEX files
run: octave --no-gui --no-window-system --silent --eval "system ('make -C @gifti/private PLATFORM=octave');"
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"