-
Notifications
You must be signed in to change notification settings - Fork 55
68 lines (59 loc) · 1.68 KB
/
build_test.yml
File metadata and controls
68 lines (59 loc) · 1.68 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: Full Install & Build Tests
on:
push:
branches:
- main
pull_request:
branches:
- '**'
types: [opened, synchronize, reopened]
merge_group:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
matrix:
container:
- "ros:jazzy"
container: ${{ matrix.container }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-${{ hashFiles('dependencies.txt') }}
restore-keys: |
${{ runner.os }}-apt-
- name: Install Base Dependencies
run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get update && apt-get install -y --no-install-recommends \
curl gnupg2 lsb-release software-properties-common \
locales \
git \
x11-apps \
mesa-utils \
gettext-base
- name: Install Project Dependencies
run: |
envsubst < dependencies.txt | xargs sudo apt-get install -y --no-install-recommends
- name: Initialize submodules
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
git submodule update --init --recursive
- name: Cache Build Artifacts
uses: actions/cache@v3
with:
path: build/
key: ${{ runner.os }}-build-${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-build-
- name: Build All
run: |
export PARALLEL_JOBS=1
make build-all