Allow CI simulator build under macOS if manually triggered

This commit is contained in:
Oleg Kalachev 2025-02-12 06:24:51 +03:00
parent 437ce81a68
commit ce1223e82d

View File

@ -5,6 +5,7 @@ on:
branches: [ '*' ] branches: [ '*' ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
workflow_dispatch:
jobs: jobs:
build_linux: build_linux:
@ -62,22 +63,23 @@ jobs:
path: gazebo/build/*.so path: gazebo/build/*.so
retention-days: 1 retention-days: 1
# build_simulator_macos: build_simulator_macos:
# runs-on: macos-latest runs-on: macos-latest
# steps: if: github.event_name == 'workflow_dispatch'
# - name: Install Arduino CLI steps:
# run: brew install arduino-cli - name: Install Arduino CLI
# - uses: actions/checkout@v4 run: brew install arduino-cli
# - name: Clean up python binaries # Workaround for https://github.com/actions/setup-python/issues/577 - uses: actions/checkout@v4
# run: | - name: Clean up python binaries # Workaround for https://github.com/actions/setup-python/issues/577
# rm -f /usr/local/bin/2to3* run: |
# rm -f /usr/local/bin/idle3* rm -f /usr/local/bin/2to3*
# rm -f /usr/local/bin/pydoc3* rm -f /usr/local/bin/idle3*
# rm -f /usr/local/bin/python3* rm -f /usr/local/bin/pydoc3*
# rm -f /usr/local/bin/python3*-config rm -f /usr/local/bin/python3*
# - name: Install Gazebo rm -f /usr/local/bin/python3*-config
# run: brew update && brew tap osrf/simulation && brew install gazebo11 - name: Install Gazebo
# - name: Install SDL2 run: brew update && brew tap osrf/simulation && brew install gazebo11
# run: brew install sdl2 - name: Install SDL2
# - name: Build simulator run: brew install sdl2
# run: make build_simulator - name: Build simulator
run: make build_simulator