From 405777dc46925e12cdd6a1e89a9b99da5f28f226 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 24 Apr 2025 18:20:44 +0300 Subject: [PATCH] Use ubuntu-22.04 for sim build, add job with building with docker --- .github/workflows/build.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50b7b9e..70cae4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: run: python3 tools/check_c_cpp_properties.py build_simulator: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Install Arduino CLI uses: arduino/setup-arduino-cli@v1.1.1 @@ -63,6 +63,28 @@ jobs: path: gazebo/build/*.so retention-days: 1 + build_simulator_docker: + runs-on: ubuntu-latest + steps: + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + - name: Pull Docker image + run: docker pull ubuntu:20.04 + - name: Run build in Docker + run: | + docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ubuntu:20.04 /bin/bash -c " + apt-get update && + apt-get install -y curl sudo build-essential libsdl2-dev && + curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh && + curl -sSL http://get.gazebosim.org | sh && + make build_simulator + " + - uses: actions/upload-artifact@v4 + with: + name: gazebo-plugin-binary + path: gazebo/build/*.so + retention-days: 1 + build_simulator_macos: runs-on: macos-latest if: github.event_name == 'workflow_dispatch'