-
Notifications
You must be signed in to change notification settings - Fork 21
71 lines (69 loc) · 1.98 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
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
cpp:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: 'Windows static library'
os: windows-latest
build_shared: OFF
- name: 'Windows shared library'
os: windows-latest
build_shared: ON
- name: 'Linux static library'
os: ubuntu-latest
build_shared: OFF
- name: 'Linux shared library'
os: ubuntu-latest
build_shared: ON
- name: 'macOS static library (Intel)'
os: macos-13
build_shared: OFF
- name: 'macOS shared library (Intel)'
os: macos-13
build_shared: ON
- name: 'macOS static library (ARM)'
os: macos-latest
build_shared: OFF
- name: 'macOS shared library (ARM)'
os: macos-latest
build_shared: ON
env:
BUILDCACHE_ACCURACY: STRICT
BUILDCACHE_COMPRESS_FORMAT: ZSTD
BUILDCACHE_DEBUG: -1
BUILDCACHE_LOG_FILE: ""
steps:
- name: Check out libCellML
uses: actions/checkout@v4
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: Install buildcache
uses: mikehardy/buildcache-action@v2
with:
cache_key: ${{ matrix.os }}-${{ matrix.build_shared }}
- name: Configure MSVC
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1
- name: Configure libCellML
run: |
mkdir build
cd build
cmake -G Ninja -DBINDINGS_PYTHON=OFF -DBUILD_SHARED=${{ matrix.build_shared }} -DCOVERAGE=OFF -DLLVM_COVERAGE=OFF -DMEMCHECK=OFF ..
- name: Build libCellML
run: |
cd build
ninja
- name: Unit testing
run: |
cd build
ninja test