-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (46 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
55 lines (46 loc) · 1.23 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
name: CI
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore: ['**.md', 'LICENSE', '.gitignore']
pull_request:
paths-ignore: ['**.md', 'LICENSE', '.gitignore']
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
build:
name: Build (${{ matrix.arch }})
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-24.04
image: ghcr.io/${{ github.repository }}/ci-base:amd64
- arch: arm64
runner: ubuntu-24.04-arm
image: ghcr.io/${{ github.repository }}/ci-base:arm64
runs-on: ${{ matrix.runner }}
container:
image: ${{ matrix.image }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Link into catkin workspace
run: ln -s "$GITHUB_WORKSPACE" /catkin_ws/src/mimosa
- name: Build mimosa
shell: bash
run: |
cd /catkin_ws
. devel/setup.bash
catkin build mimosa --no-status --force-color