-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.32 KB
/
build_and_test.yaml
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
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
name: Build and Test (humble)
# This determines when this workflow is run
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
# Run every morning to detect flakiness and broken dependencies
- cron: '43 1 * * *'
jobs:
industrial_ci:
strategy:
fail-fast: false
matrix:
env:
- CI_NAME: build-and-test
# TODO: Enable clang-tidy it's failing to errors unrelated to this repo
# - CI_NAME: clang-tidy
# CLANG_TIDY: true
env:
CCACHE_DIR: /github/home/.ccache
CXXFLAGS: "-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
ROS_DISTRO: humble
ROS_REPO: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# This step will fetch/store the directory used by ccache before/after the ci run
- uses: actions/cache@v2
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-{{ matrix.env.ROS_DISTRO }}-{{ matrix.env.ROS_REPO }}
# Run industrial_ci
- uses: 'ros-industrial/industrial_ci@master'
env: ${{ matrix.env }}