Skip to content

Commit

Permalink
add health-check-nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Nov 15, 2024
1 parent afa9519 commit 326f0c3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
cache-tag-suffix:
description: Suffix of the target cache tag.
required: true
repos:
description: Target .repos file.
default: autoware.repos
required: true
build-args:
description: Additional build args.
required: false
Expand All @@ -28,7 +32,7 @@ runs:
- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos
vcs import src < ${{ inputs.repos }}
shell: bash

- name: Cache ccache
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/health-check-nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: health-check-nightly

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
schedule:
- cron: 0 6 * * *
workflow_dispatch:

jobs:
label-check:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: tag: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
runs-on: ubuntu-22.04
strategy:
fail-fast: false
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: Free disk space
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware'
uses: ./.github/actions/docker-build
with:
platform: amd64
cache-tag-suffix: main
repos: autoware.repos
build-args: |
ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
BASE_IMAGE=${{ needs.load-env.outputs.base_image }}
LIB_DIR=x86_64
- name: Show disk space
if: always()
run: |
df -h

0 comments on commit 326f0c3

Please sign in to comment.