-
Notifications
You must be signed in to change notification settings - Fork 3.6k
99 lines (89 loc) · 2.89 KB
/
health-check.yaml
File metadata and controls
99 lines (89 loc) · 2.89 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: health-check
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
schedule:
- cron: 0 12 * * *
workflow_dispatch:
jobs:
label-check:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: run:health-check
load-env:
needs: label-check
if: ${{ needs.label-check.outputs.result == 'true' ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/load-env.yaml
docker-build:
needs: load-env
strategy:
fail-fast: false
matrix:
build-type: [main, nightly, main-arm64]
include:
- build-type: main
platform: amd64
runner: "['self-hosted','Linux','X64']"
lib-dir: x86_64
container: ubuntu:22.04
- build-type: nightly
platform: amd64
runner: "['ubuntu-24.04']"
lib-dir: x86_64
- build-type: main-arm64
platform: arm64
runner: "['ubuntu-24.04-arm']"
lib-dir: aarch64
runs-on: ${{ fromJson(matrix.runner) }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get changed files
id: changed-files
uses: step-security/changed-files@v46
with:
files: |
*.env
*.repos
.github/actions/docker-build/action.yaml
.github/workflows/health-check.yaml
ansible-galaxy-requirements.yaml
ansible/**
docker/**
setup-dev-env.sh
- name: Show disk space
if: always()
run: |
df -h
- name: Free disk space
if: ${{ steps.changed-files.outputs.any_changed == 'true' &&
matrix.build-type != 'main' }}
uses: ./.github/actions/free-disk-space
- name: Build 'Autoware'
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/docker-build
with:
platform: ${{ matrix.platform }}
cache-tag-suffix: ${{ matrix.build-type }}
additional-repos: ${{ matrix.build-type == 'nightly' && 'autoware-nightly.repos' || '' }}
build-args: |
ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
AUTOWARE_BASE_IMAGE=${{ needs.load-env.outputs.autoware_base_image }}
AUTOWARE_BASE_CUDA_IMAGE=${{ needs.load-env.outputs.autoware_base_cuda_image }}
LIB_DIR=${{ matrix.lib-dir }}
- name: Show disk space
if: always()
run: |
df -h