-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.03 KB
/
build.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: gcc
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
env:
PACKAGE_NAME: maliput_malidrive
ROS_DISTRO: foxy
# Cancel previously running PR jobs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
bazel:
name: Compile and Test (Bazel)
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}-bazel-ci:latest
steps:
- uses: actions/checkout@v3
- name: Build
shell: bash
run: |
bazel build //...
cmake:
name: Compile and Test (CMake)
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/setup-ros@v0.3
- uses: ros-tooling/action-ros-ci@v0.2
id: action_ros_ci_step
with:
package-name: ${{ env.PACKAGE_NAME }}
target-ros2-distro: ${{ env.ROS_DISTRO }}
vcs-repo-file-url: ${GITHUB_WORKSPACE}/.github/dependencies.repos