bug fixed of not installed gtest... #9
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: Build | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install GTest on Ubuntu | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get install -y libgtest-dev | |
- name: Install GTest on macOS | |
if: startsWith(matrix.os, 'macos') | |
run: brew install googletest | |
- name: Build hakoniwa-px4sim/drone_physics on ubuntu | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
cd drone_physics && cmake -D HAKO_CLIENT_OPTION_FILEPATH=../cmake-options/linux-cmake-options.cmake . && make | |
- name: Build hakoniwa-px4sim/drone_physics on macOs | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
cd drone_physics && cmake . && make | |
- name: hakoniwa-px4sim/hakoniwa | |
run: | | |
cd hakoniwa && bash build.bash | |