diff --git a/.github/workflows/package_xml.yml b/.github/workflows/package_xml.yml new file mode 100644 index 00000000..5b5c6d88 --- /dev/null +++ b/.github/workflows/package_xml.yml @@ -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*([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 ] diff --git a/package.xml b/package.xml new file mode 100644 index 00000000..b45e4288 --- /dev/null +++ b/package.xml @@ -0,0 +1,28 @@ + + + + gz-sensors8 + 8.0.1 + Gazebo Sensors : Sensor models for simulation + Ian Chen + Apache License 2.0 + https://github.com/gazebosim/gz-fuel-tools + + cmake + + gz-cmake3 + + gz-common5 + gz-math7 + gz-msgs10 + gz-rendering8 + gz-tools2 + gz-transport13 + sdformat14 + + xvfb + + + cmake + +