Skip to content

Commit

Permalink
ci: use codebuild for arm64 workflows
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Aug 23, 2024
1 parent 490088f commit 8de85b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker-build-and-push-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
tags:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
load-env:
uses: ./.github/workflows/load-env.yaml

docker-build-and-push:
needs: load-env
runs-on: [self-hosted, linux, ARM64]
runs-on: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -46,8 +50,11 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Show disk space before the tasks
run: df -h

- name: Show machine specs
run: lscpu && free -h

- name: Get changed files
id: changed-files
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/health-check-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
- cron: 0 12 * * *
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
load-env:
uses: ./.github/workflows/load-env.yaml

docker-build:
needs: load-env
runs-on: [self-hosted, linux, ARM64]
runs-on: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -44,8 +48,11 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Show disk space before the tasks
run: df -h

- name: Show machine specs
run: lscpu && free -h

- name: Build 'Autoware'
uses: ./.github/actions/docker-build
Expand Down

0 comments on commit 8de85b0

Please sign in to comment.