Skip to content

docs: exampleのコード表示追加 #55

docs: exampleのコード表示追加

docs: exampleのコード表示追加 #55

Workflow file for this run

name: build
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt install libeigen3-dev libgtest-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pip install numpy
pip install matplotlib
- name: Build & Test
working-directory: ${{github.workspace}}
run: |
JOBS=$(($(grep cpu.cores /proc/cpuinfo | sort -u | sed 's/[^0-9]//g') + 1))
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF
cmake --build build -j${JOBS}
cd build
ctest
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt install libeigen3-dev libgtest-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pip install numpy
pip install matplotlib
- name: Build & Test
working-directory: ${{github.workspace}}
run: |
JOBS=$(($(grep cpu.cores /proc/cpuinfo | sort -u | sed 's/[^0-9]//g') + 1))
cmake -S . -B build -DBUILD_EXAMPLES=ON -DBUILD_TESTS=OFF -DBUILD_BENCHMARKS=OFF
cmake --build build -j${JOBS}