-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (57 loc) · 1.63 KB
/
ci.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
name: Test matHELICS
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
#schedule:
# - cron: "35 10 * * 1,3,5 # running early in the morning (UTC)
jobs:
ci-test:
strategy:
fail-fast: false
matrix:
os: [windows-2022,macos-13,ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install latest HELICS release
uses: gmlc-tdc/helics-action/install@main
- name: Set up MATLAB (macOS)
if: runner.os == 'macOS'
uses: matlab-actions/[email protected]
with:
release: R2023b
- name: Set up MATLAB (Windows)
if: runner.os == 'Windows'
uses: matlab-actions/[email protected]
with:
release: R2022b
- name: Set up MATLAB (Linux)
if: runner.os == 'Linux'
uses: matlab-actions/[email protected]
with:
release: R2022b
- name: Set up MEX
uses: matlab-actions/run-command@v2
with:
command: mex -setup
- name: Build matHELICS
uses: matlab-actions/run-command@v2
with:
command: buildHelicsInterface('helics',true)
- name: store package
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-matHELICS
path: matHELICS.*
- name: run startup
uses: matlab-actions/run-command@v2
with:
command: addpath('helics'), helicsStartup
- name: run tests
uses: matlab-actions/run-command@v2
with:
command: addpath('tests'),addpath('helics'),runAllTests