-
Notifications
You must be signed in to change notification settings - Fork 89
146 lines (127 loc) · 4.57 KB
/
package_debian.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Package-Debian-Build
on:
push:
tags:
- '*'
# allow manually starting this workflow
workflow_dispatch:
jobs:
Debian:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
container:
image: ubuntu:${{ matrix.distro }}
env:
DEBIAN_FRONTEND: noninteractive
strategy:
fail-fast: false
matrix:
distro: [focal, jammy, noble]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: target_ws/src
- name: Install Depends
shell: bash
run: |
apt update
apt upgrade -y
apt install -y liboctomap-dev
- name: Build and test
uses: tesseract-robotics/colcon-action@v9
with:
ccache-enabled: false
vcs-file: ${{ matrix.distro == 'focal' && 'dependencies_focal.repos' || 'dependencies.repos' }}
upstream-args: --cmake-args -DCMAKE_BUILD_TYPE=Release
target-path: target_ws/src
target-args: --cmake-args -DCMAKE_BUILD_TYPE=Release -DTESSERACT_PACKAGE=ON
run-tests: false
- name: Create artifacts directory
run: |
mkdir $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_collision
working-directory: target_ws/build/tesseract_collision
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_common
working-directory: target_ws/build/tesseract_common
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_environment
working-directory: target_ws/build/tesseract_environment
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_geometry
working-directory: target_ws/build/tesseract_geometry
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_kinematics
working-directory: target_ws/build/tesseract_kinematics
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_scene_graph
working-directory: target_ws/build/tesseract_scene_graph
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_support
working-directory: target_ws/build/tesseract_support
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_urdf
working-directory: target_ws/build/tesseract_urdf
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_srdf
working-directory: target_ws/build/tesseract_srdf
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_visualization
working-directory: target_ws/build/tesseract_visualization
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- name: Package tesseract_state_solver
working-directory: target_ws/build/tesseract_state_solver
shell: bash
run: |
cpack --config CPackConfig.cmake
cp ./*.deb $GITHUB_WORKSPACE/artifacts
cp ./*.tar.xz $GITHUB_WORKSPACE/artifacts
- uses: actions/upload-artifact@v4
with:
name: debian_package_${{ matrix.distro }}
path: ${{ github.workspace }}/artifacts/*.deb
- uses: actions/upload-artifact@v4
with:
name: archive_package_${{ matrix.distro }}
path: ${{ github.workspace }}/artifacts/*.tar.xz