-
Notifications
You must be signed in to change notification settings - Fork 32
46 lines (44 loc) · 1.29 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Ubuntu CI
on:
pull_request:
push:
branches:
- 'ign-cmake[0-9]'
- 'gz-cmake[0-9]'
- 'main'
- 'package_xml_ci_test'
jobs:
focal-ci:
runs-on: ubuntu-latest
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile and test
id: ci
uses: gazebo-tooling/action-gz-ci@focal
with:
cmake-args: '-DBUILDSYSTEM_TESTING=True'
jammy-ci:
runs-on: ubuntu-latest
name: Ubuntu Jammy CI
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile and test
id: ci
uses: gazebo-tooling/action-gz-ci@jammy
with:
cmake-args: '-DBUILDSYSTEM_TESTING=True -DGZ_ENABLE_RELOCATABLE_INSTALL=True'
version_consistency:
runs-on: ubuntu-latest
name: Version consistency between cmake and package.xml
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify version consistency
run: |
grep 'project(gz-cmake[0-9]* VERSION' CMakeLists.txt | sed -e 's@.*VERSION @@' -e 's@) *@@' > /tmp/cmake_version
cat /tmp/cmake_version
grep '<version>' package.xml | sed -e 's@ *<version>@@' -e 's@</version>@@' > /tmp/package_xml_version
cat /tmp/package_xml_version