diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ba3d99..8663645 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,15 +53,25 @@ jobs: run: python3 tools/check_c_cpp_properties.py build_simulator: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest + container: + image: ubuntu:20.04 steps: + - name: Install dependencies + run: | + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget build-essential cmake g++ pkg-config gnupg2 lsb-release sudo - name: Install Arduino CLI uses: arduino/setup-arduino-cli@v1.1.1 - uses: actions/checkout@v4 - name: Install Gazebo - run: curl -sSL http://get.gazebosim.org | sh + run: | + sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' + wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - + sudo apt-get update + sudo apt-get install -y gazebo11 libgazebo11-dev - name: Install SDL2 - run: sudo apt-get install libsdl2-dev + run: sudo apt-get install -y libsdl2-dev - name: Build simulator run: make build_simulator - uses: actions/upload-artifact@v4 diff --git a/docs/usage.md b/docs/usage.md index 7a2bb3e..e6267a2 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -13,7 +13,7 @@ cd flix ### Ubuntu -The latest version of Ubuntu supported by Gazebo 11 simulator is 22.04. If you have a newer version, consider using a virtual machine. +The latest version of Ubuntu supported by Gazebo 11 simulator is 20.04. If you have a newer version, consider using a virtual machine. 1. Install Arduino CLI: @@ -24,7 +24,10 @@ The latest version of Ubuntu supported by Gazebo 11 simulator is 22.04. If you h 2. Install Gazebo 11: ```bash - curl -sSL http://get.gazebosim.org | sh + sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' + wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - + sudo apt-get update + sudo apt-get install -y gazebo11 libgazebo11-dev ``` Set up your Gazebo environment variables: