openGJK/.github/workflows/github-opengjk-examples.yml

57 lines
1.8 KiB
YAML
Raw Normal View History

2023-02-14 04:26:12 -08:00
name: Run all demos
run-name: ${{ github.actor }} is running
on: [push]
jobs:
2023-02-14 06:58:55 -08:00
C:
2023-02-14 04:44:19 -08:00
runs-on: ubuntu-latest
container: mmontanari/devenv:buildenv-fedora
2023-02-14 04:26:12 -08:00
steps:
- name: Check out repository code
uses: actions/checkout@v3
2023-02-14 04:34:43 -08:00
- run: cmake -E make_directory build
- run: cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release ..
- run: cmake --build build
- run: cmake -E chdir build/examples/c/ ./example_lib_opengjk_ce
2023-02-14 05:05:42 -08:00
Cython:
runs-on: ubuntu-latest
container: mmontanari/devenv:buildenv-ubuntu
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: cd examples/cython/ && python3 setup.py build_ext --inplace && python3 pygjk_trial.py
- run: cd examples/cython/ && pytest test.py
CSharp:
runs-on: ubuntu-latest
2023-02-14 08:17:17 -08:00
container: mono:latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: apt-get update && apt-get install gcc cmake -y
- run: cmake -E make_directory build
# Using single precision
- run: cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MONO=ON -DSINGLE_PRECISION=ON ..
- run: cmake --build build --target opengjk_ce
2023-02-14 08:26:10 -08:00
- run: cmake -E chdir build make install
- run: cd examples/cs/ && mcs -out:main.exe main.cs && mono main.exe
2023-02-14 06:58:55 -08:00
GO:
2023-02-14 05:05:42 -08:00
runs-on: ubuntu-latest
container: mmontanari/devenv:buildenv-fedora
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
2023-02-14 05:12:09 -08:00
- run: cd examples/go/openGJK && go build && go test -v
2023-02-14 06:05:20 -08:00
2023-02-14 06:58:55 -08:00
Octave:
2023-02-14 06:05:20 -08:00
runs-on: ubuntu-latest
container: gnuoctave/octave:7.3.0
steps:
- name: Check out repository code
uses: actions/checkout@v3
2023-02-14 06:14:18 -08:00
- run: cd examples/matlab/; octave runme.m