-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (54 loc) · 1.62 KB
/
reusable-ci.yml
File metadata and controls
62 lines (54 loc) · 1.62 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
name: Reusable CI Workflow
on:
workflow_call:
inputs:
os:
description: "The OS to use for the workflow"
required: true
type: string
branch:
description: "The branch to use for the workflow"
required: true
type: string
python-version:
description: "The Python version to use for the workflow"
required: false
type: string
default: "3.12"
jobs:
build:
runs-on: ${{ inputs.os }}
strategy:
fail-fast: false
steps:
- name: Sync repository
uses: actions/checkout@v5
with:
ref: ${{ inputs.branch }}
submodules: recursive
- name: Install APT packages
uses: ./.github/actions/install_apt_packages
with:
packages: "build-essential cmake gcc-arm-none-eabi rsync"
use-sudo: "true"
use-update: "true"
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- name: Install required python packages
uses: ./.github/actions/install_python_packages
with:
packages: "catkin_pkg lark-parser empy colcon-common-extensions"
python-version: ${{ inputs.python-version }}
use-sudo: "true"
- name: Install TivaWare SDK
uses: ./.github/actions/install_sdk
with:
sdk_version: "2.1.4.178"
install_path: "${{ github.workspace }}/tivaware_c_series"
force_reinstall: "false"
use-sudo: "true"
- name: Build project
run: make -j$(nproc)
shell: bash