-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (57 loc) · 1.56 KB
/
test_linux.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
63
64
65
66
---
#----------------------------------------------------------------------------------------
# FILENAME:
# test_linux.yml
# DESCRIPTION:
# GitHub Actions configuration for Linux.
# AUTHOR:
# Adam Erickson (Nervosys)
# DATE:
# 2024-02-20
# NOTES:
#
# Copyright © 2024 Nervosys, LLC
#----------------------------------------------------------------------------------------
name: "Build: Linux"
on:
push:
branches:
- master
pull_request:
branches:
- master
types: [opened, synchronize, reopened, closed]
# workflow_dispatch:
env:
GCC_VERSION: "13.2.0"
jobs:
build-ubuntu:
runs-on: ${{ matrix.os }} # ubuntu-latest
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] # versions 20, 22, 24 LTS
arch:
- amd64
# - arm64
steps:
- uses: actions/checkout@v4
- name: "Cache GCC build"
id: cache-gcc
uses: actions/cache@v4
with:
path: "gcc-$GCC_VERSION/"
key: ${{ runner.os }}-gcc
- name: "Build GCC from source"
if: steps.cache-gcc.outputs.cache-hit != 'true'
shell: bash
run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION"
- name: "Install AutonomySim Dependencies"
shell: bash
run: bash ./scripts/setup.sh
- name: "Build AutonomySim"
shell: bash
run: bash ./scripts/build.sh
# - name: "Build AutonomySim ROS2 Wrapper"
# # if: ${{ matrix.os == 'ubuntu-20.04' }}
# shell: bash
# run: bash ./scripts/build_ros2_ubuntu.sh