From 8de85b04e78133b79b5adbdb1aab487bef0b06f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Fri, 23 Aug 2024 15:02:48 +0300 Subject: [PATCH] ci: use codebuild for arm64 workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/workflows/docker-build-and-push-arm64.yaml | 13 ++++++++++--- .github/workflows/health-check-arm64.yaml | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-build-and-push-arm64.yaml b/.github/workflows/docker-build-and-push-arm64.yaml index 9a4dcc46950..d9907685298 100644 --- a/.github/workflows/docker-build-and-push-arm64.yaml +++ b/.github/workflows/docker-build-and-push-arm64.yaml @@ -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: @@ -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 diff --git a/.github/workflows/health-check-arm64.yaml b/.github/workflows/health-check-arm64.yaml index e1ee8813ca6..b0eefc0ac6d 100644 --- a/.github/workflows/health-check-arm64.yaml +++ b/.github/workflows/health-check-arm64.yaml @@ -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: @@ -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