-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a GitHub action to install a Gazebo releases
Initial work for supporting a GitHub action that can install Gazebo releases on Ubuntu Linux. The code also includes a test on of the own action for the existing disitributions. --------- Signed-off-by: Saurabh Kamat <[email protected]>
- Loading branch information
Showing
7 changed files
with
290 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,59 @@ | ||
name: 'Test setup-gazebo' | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- "releases/*" | ||
schedule: | ||
# Run the CI automatically twice per day to look for flakyness. | ||
- cron: "0 */12 * * *" | ||
jobs: | ||
test_linux: | ||
test_gazebo_install_ubuntu: | ||
name: 'Check installation of Gazebo on Ubuntu' | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.docker_image }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
docker_image: | ||
- ubuntu:20.04 | ||
- ubuntu:22.04 | ||
gazebo_distribution: | ||
- citadel | ||
- fortress | ||
- garden | ||
- harmonic | ||
include: | ||
# Gazebo Citadel (Dec 2019 - Dec 2024) | ||
- docker_image: ubuntu:focal | ||
gazebo_distribution: citadel | ||
|
||
# Gazebo Fortress (Sep 2021 - Sep 2026) | ||
- docker_image: ubuntu:focal | ||
gazebo_distribution: fortress | ||
|
||
# Gazebo Garden (Sep 2022 - Nov 2024) | ||
- docker_image: ubuntu:focal | ||
gazebo_distribution: garden | ||
|
||
# Gazebo Harmonic (Sep 2023 - Sep 2028) | ||
- docker_image: ubuntu:jammy | ||
gazebo_distribution: harmonic | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Linux setup' | ||
uses: ./ | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "20.x" | ||
- name: 'Check Gazebo installation on Ubuntu runner' | ||
uses: ./ | ||
with: | ||
required-gazebo-distributions: ${{ matrix.gazebo_distribution }} | ||
- name: 'Test Gazebo installation' | ||
run: | | ||
if command -v ign > /dev/null; then | ||
ign gazebo --versions | ||
elif command -v gz > /dev/null; then | ||
gz sim --versions | ||
else | ||
echo "Neither ign nor gz command found" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
name: 'Setup Gazebo release' | ||
description: | | ||
Install a Gazebo release on a Linux system | ||
required-gazebo-distributions: | ||
description: | | ||
List of Gazebo distributions to be installed. | ||
Allowed Gazebo distributions | ||
- citadel | ||
- fortress | ||
- garden | ||
- harmonic | ||
Multiple values can be passed using a whitespace delimited list | ||
"fortress garden". | ||
required: false | ||
default: '' | ||
runs: | ||
using: node20 | ||
main: dist/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.