Skip to content

first try

first try #1001

Workflow file for this run

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