-
Notifications
You must be signed in to change notification settings - Fork 220
33 lines (29 loc) · 934 Bytes
/
c.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
name: REBOUND (C)
on: [push, pull_request]
jobs:
build:
name: Compiling C examples on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Check if symbols in shared library have correct prefix
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
make
nm -g --defined-only librebound.so | cut -d ' ' -f3
! nm -g --defined-only librebound.so | cut -d ' ' -f3 | grep -v "^reb_"
- name: Compile all examples (ubuntu)
working-directory: ./examples
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
make
- name: Compile all examples (windows)
working-directory: ./examples
if: ${{ contains(matrix.os, 'windows') }}
shell: pwsh
run: |
make