forked from tesseract-robotics/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (53 loc) · 1.59 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
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
CPACK_ARTIFACTS_DIR: $GITHUB_WORKSPACE/artifacts
strategy:
fail-fast: false
matrix:
distro: [focal, jammy, noble]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: target_ws/src
- name: Install dependencies
run: |
apt update -q
apt install -q -y liboctomap-dev
- name: Build and test
uses: tesseract-robotics/colcon-action@v9
with:
ccache-enabled: false
vcs-file: 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
working-directory: target_ws/src/tesseract
shell: bash
run: ./.run-cpack
- 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