Skip to content

Commit

Permalink
Add package.xml
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Mar 18, 2024
1 parent 7d30e47 commit b800913
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/package_xml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate package.xml

on:
pull_request:

jobs:
package-xml:
runs-on: ubuntu-latest
name: package.xml and CMake versions match
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check versions
run: |
echo "Extract version numbers and compare"
package_xml_version=$(sed -nE 's/\s*<version>([0-9.]*)<\/version>\s*/\1/p' package.xml)
echo "Version in package.xml: ${package_xml_version}"
cmake_version=$(sed -nE 's/^project.*VERSION\s*([0-9.]*).*/\1/p' CMakeLists.txt)
echo "Version in CMake: ${cmake_version}"
[ $package_xml_version = $cmake_version ]
27 changes: 27 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<package format="2">
<name>gz-physics7</name>
<version>7.1.0</version>
<description>Gazebo Physics : Physics classes and functions for robot applications</description>
<maintainer email="[email protected]">Steve Peters</maintainer>
<license>Apache License 2.0</license>
<url type="website">https://github.com/gazebosim/gz-physics</url>

<buildtool_depend>cmake</buildtool_depend>

<build_depend>gz-cmake</build_depend>

<depend>benchmark</depend>
<depend>bullet</depend>
<depend>dartsim</depend>
<depend>eigen</depend>
<depend>gz-common5</depend>
<depend>gz-math7</depend>
<depend>gz-plugin2</depend>
<depend>gz-utils2</depend>
<depend>sdformat14</depend>

<export>
<build_type>cmake</build_type>
</export>
</package>

0 comments on commit b800913

Please sign in to comment.