test2 #600
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |