Skip to content

Commit

Permalink
Test simulator run in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Jan 25, 2024
1 parent f794da9 commit bfe44eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ jobs:
run: sudo apt-get install libsdl2-dev
- name: Build simulator
run: make build_simulator
- name: Run simulator
run: timeout --preserve-status 30 make simulator GAZEBO=gzserver || [ $? -eq 143 ]
- uses: actions/upload-artifact@v3
with:
name: gazebo-plugin-binary
path: gazebo/build/*.so
retention-days: 1

build_simulator_macos:
if: false # temporarily disable
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -70,3 +71,5 @@ jobs:
run: brew install sdl2
- name: Build simulator
run: make build_simulator
- name: Run simulator
run: timeout --preserve-status 30 make simulator GAZEBO=gzserver || [ $? -eq 143 ]
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ gazebo/build cmake: gazebo/CMakeLists.txt
build_simulator: gazebo/build
make -C gazebo/build

GAZEBO ?= gazebo
simulator: build_simulator
GAZEBO_MODEL_PATH=$$GAZEBO_MODEL_PATH:${CURDIR}/gazebo/models \
GAZEBO_PLUGIN_PATH=$$GAZEBO_PLUGIN_PATH:${CURDIR}/gazebo/build \
gazebo --verbose ${CURDIR}/gazebo/flix.world
$(GAZEBO) --verbose ${CURDIR}/gazebo/flix.world

log:
PORT=$(PORT) tools/grab_log.py
Expand Down

0 comments on commit bfe44eb

Please sign in to comment.