forked from dtamayo/reboundx
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.12 KB
/
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
34
35
36
name: REBOUNDx (C)
on: [push, pull_request, repository_dispatch]
jobs:
build:
name: Compiling C examples on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-11]
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Checkout REBOUND
uses: actions/checkout@v4
with:
repository: hannorein/rebound
ref: ${{ github.event.client_payload.sha }}
path: ./rebound
- name: Check if symbols in shared library have correct prefix
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
echo "Installing REBOUND SHA: ${{ github.event.client_payload.sha }}"
export REB_DIR=$GITHUB_WORKSPACE/rebound
make
nm -g --defined-only libreboundx.so | cut -d ' ' -f3
! nm -g --defined-only libreboundx.so | cut -d ' ' -f3 | grep -v "^rebx_"
- name: Compile all examples (ubuntu)
working-directory: ./examples
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
export REB_DIR=$GITHUB_WORKSPACE/rebound
make