Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Takamasa Horibe <[email protected]>
  • Loading branch information
TakaHoribe committed Jun 17, 2024
1 parent a6f77e8 commit b48cd7e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build-and-test-arm64.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: build-and-test-arm64
name: build-and-test

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
inputs:
target_branch_or_tag:
description: 'Set target branch or tag for build and test'
required: true
default: 'main'

jobs:
build-and-test-arm64:
runs-on: [self-hosted, linux, ARM64]
build-and-test:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
runs-on: ubuntu-latest
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
Expand All @@ -24,6 +28,11 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.target_branch_or_tag }}

- name: Display checked out branch or tag
run: echo "Checked out branch/tag to: ${{ github.event.inputs.branch_or_tag }}"

- name: Show disk space before the tasks
run: df -h
Expand All @@ -45,11 +54,21 @@ jobs:

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
id: test
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
uses: codecov/codecov-action@v3
with:
files: ${{ steps.test.outputs.coverage-report-files }}
fail_ci_if_error: false
verbose: true
flags: total

- name: Show disk space after the tasks
run: df -h
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-for-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-and-test
name: build-and-test-for-branch

on:
workflow_dispatch:
Expand Down

0 comments on commit b48cd7e

Please sign in to comment.