From ce1223e82da9a3f3b5854dc5855be2ad621daa9d Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 12 Feb 2025 06:24:51 +0300 Subject: [PATCH] Allow CI simulator build under macOS if manually triggered --- .github/workflows/build.yml | 40 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2827f47..50b7b9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: branches: [ '*' ] pull_request: branches: [ master ] + workflow_dispatch: jobs: build_linux: @@ -62,22 +63,23 @@ jobs: path: gazebo/build/*.so retention-days: 1 -# build_simulator_macos: -# runs-on: macos-latest -# steps: -# - name: Install Arduino CLI -# run: brew install arduino-cli -# - uses: actions/checkout@v4 -# - name: Clean up python binaries # Workaround for https://github.com/actions/setup-python/issues/577 -# run: | -# rm -f /usr/local/bin/2to3* -# rm -f /usr/local/bin/idle3* -# rm -f /usr/local/bin/pydoc3* -# rm -f /usr/local/bin/python3* -# rm -f /usr/local/bin/python3*-config -# - name: Install Gazebo -# run: brew update && brew tap osrf/simulation && brew install gazebo11 -# - name: Install SDL2 -# run: brew install sdl2 -# - name: Build simulator -# run: make build_simulator + build_simulator_macos: + runs-on: macos-latest + if: github.event_name == 'workflow_dispatch' + steps: + - name: Install Arduino CLI + run: brew install arduino-cli + - uses: actions/checkout@v4 + - name: Clean up python binaries # Workaround for https://github.com/actions/setup-python/issues/577 + run: | + rm -f /usr/local/bin/2to3* + rm -f /usr/local/bin/idle3* + rm -f /usr/local/bin/pydoc3* + rm -f /usr/local/bin/python3* + rm -f /usr/local/bin/python3*-config + - name: Install Gazebo + run: brew update && brew tap osrf/simulation && brew install gazebo11 + - name: Install SDL2 + run: brew install sdl2 + - name: Build simulator + run: make build_simulator