-
Notifications
You must be signed in to change notification settings - Fork 260
68 lines (61 loc) · 2.21 KB
/
Copy pathbuild.yml
File metadata and controls
68 lines (61 loc) · 2.21 KB
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
name: Build
on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'
repository_dispatch:
types: [trigger-event]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
DISTRO: [
{ "base_image": "ubuntu:jammy", "ros_distro": "humble", "cuda":"OFF", "suffix": "gcc" },
{ "base_image": "ubuntu:jammy", "ros_distro": "humble", "cuda":"OFF", "suffix": "llvm" },
{ "base_image": "ubuntu:noble", "ros_distro": "jazzy", "cuda":"OFF", "suffix": "gcc" },
{ "base_image": "ubuntu:noble", "ros_distro": "jazzy", "cuda":"OFF", "suffix": "llvm" },
{ "base_image": "nvidia/cuda:13.1.0-devel-ubuntu24.04", "ros_distro": "jazzy", "cuda":"ON", "suffix": "llvm" },
# { "ubuntu": "noble_gtsam4.3a0", "suffix": "llvm" },
# { "ubuntu": "jammy_gtsam4.3a0", "suffix": "gcc" },
# { "ubuntu": "jammy_gtsam4.3a0", "suffix": "llvm" },
# { "ubuntu": "jammy_cuda12.2_gtsam4.3a0", "suffix": "gcc.cuda" },
# { "ubuntu": "jammy_cuda12.2_gtsam4.3a0", "suffix": "llvm.cuda" }
]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Docker login
continue-on-error: true
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker build
uses: docker/build-push-action@v6
with:
file: ${{github.workspace}}/docker/ubuntu/Dockerfile.${{ matrix.DISTRO.suffix }}
build-args: |
BASE_IMAGE=${{ matrix.DISTRO.base_image }}
ROS_DISTRO=${{ matrix.DISTRO.ros_distro }}
WITH_CUDA=${{ matrix.DISTRO.cuda }}
context: .
dispatch:
needs: build
strategy:
matrix:
repo: ['koide3/glim_ros2']
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
repository: ${{ matrix.repo }}
event-type: trigger-event