-
Notifications
You must be signed in to change notification settings - Fork 51
90 lines (89 loc) · 3.24 KB
/
ci.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# SPDX-License-Identifier: MIT-0
---
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 12 * * *'
concurrency:
# Cancel previous CI runs when additional commits are added to a pull request.
# This will not cancel CI runs associated with `schedule` or `push`.
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
macos_monterey:
name: macos monterey 12
runs-on: macos-12
steps:
- name: checkout
uses: actions/checkout@v2
# See issue https://github.com/actions/setup-python/issues/577. There is
# some kind of environment conflict between the symlinks found in the
# GitHub Actions runner and `brew upgrade python` where `brew` detects and
# refuses to overwrite symlinks. The cause for our runs is not clear,
# we do not use that action, but if that issue is closed this section
# can be removed.
- name: sanitize GHA / brew python environment
run: |
# Remove the symlinks that cause issues.
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
# On 2023-02-24 `brew upgrade` resulted in a failure linking tcl-tk.
brew unlink tcl-tk
# On 2023-04-06 `brew upgrade` resulted in a failure upgrading `go`.
brew unlink go && rm -f /usr/local/bin/go && rm -f /usr/local/bin/gofmt
# Run upgrades now to fail-fast (setup scripts do this anyway).
brew update && brew upgrade
# On 2023-02-16 the pip3.11 symlink was mysteriously missing.
brew unlink [email protected] && brew link [email protected]
pip3.11 --version
- name: setup
run: ./scripts/continuous_integration/github_actions/macos_monterey/setup
shell: zsh -efuo pipefail {0}
- name: build and test
run: ./scripts/continuous_integration/github_actions/macos_monterey/build_test
shell: zsh -efuo pipefail {0}
ros_foxy:
name: ros 2 foxy
runs-on: ubuntu-latest
container: ubuntu:focal
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
run: ./scripts/continuous_integration/github_actions/ros_foxy/setup
shell: bash
- name: build and test
run: ./scripts/continuous_integration/github_actions/ros_foxy/build_test
shell: bash
ubuntu_focal:
name: ubuntu 20.04 focal
runs-on: ubuntu-latest
container: ubuntu:focal
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
run: ./scripts/continuous_integration/github_actions/ubuntu_focal/setup
shell: bash
- name: build and test
run: ./scripts/continuous_integration/github_actions/ubuntu_focal/build_test
shell: bash
ubuntu_focal_apt:
name: ubuntu 20.04 focal apt
runs-on: ubuntu-latest
container: ubuntu:focal
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup
run: ./scripts/continuous_integration/github_actions/ubuntu_apt/setup
shell: bash
- name: build and test
run: ./scripts/continuous_integration/github_actions/ubuntu_apt/build_test
shell: bash