From 54fa924f3140144c6e7828ffd17d917dc0c37d6e Mon Sep 17 00:00:00 2001 From: Ryohsuke Mitsudome Date: Wed, 26 Feb 2025 10:12:00 +0900 Subject: [PATCH 1/2] ci: use Code Build for build-and-test-differentianl-cuda Signed-off-by: Ryohsuke Mitsudome --- .github/workflows/build-and-test-differential.yaml | 6 +++++- .github/workflows/build-test-tidy-pr.yaml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-differential.yaml b/.github/workflows/build-and-test-differential.yaml index 77c8952d2f75a..18247dd8f583f 100644 --- a/.github/workflows/build-and-test-differential.yaml +++ b/.github/workflows/build-and-test-differential.yaml @@ -22,6 +22,10 @@ on: required: false default: "" type: string + build-pre-command: + required: false + default: nice -n 19 + type: string secrets: codecov-token: required: true @@ -113,7 +117,7 @@ jobs: target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} build-depends-repos: build_depends.repos cache-key-element: ${{ env.BUILD_TYPE_CUDA_STATE }} - + build-pre-command: ${{ inputs.build-pre-command }} - name: Show ccache stats after build run: du -sh ${CCACHE_DIR} && ccache -s shell: bash diff --git a/.github/workflows/build-test-tidy-pr.yaml b/.github/workflows/build-test-tidy-pr.yaml index c0442694b5c77..f95f0504f7580 100644 --- a/.github/workflows/build-test-tidy-pr.yaml +++ b/.github/workflows/build-test-tidy-pr.yaml @@ -58,6 +58,8 @@ jobs: container: ghcr.io/autowarefoundation/autoware:universe-devel container-suffix: -cuda run-condition: ${{ needs.check-if-cuda-job-is-needed.outputs.cuda_job_is_needed == 'true' }} + runner: codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-large + build-pre-command: taskset --cpu-list 0-6 secrets: codecov-token: ${{ secrets.CODECOV_TOKEN }} From 376227b7aec03cba5d2ba156dd56b8bed1574f2e Mon Sep 17 00:00:00 2001 From: Ryohsuke Mitsudome Date: Wed, 26 Feb 2025 12:43:31 +0900 Subject: [PATCH 2/2] fix: set default pre command option to empty Signed-off-by: Ryohsuke Mitsudome --- .github/workflows/build-and-test-differential.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-differential.yaml b/.github/workflows/build-and-test-differential.yaml index 18247dd8f583f..248ee2c2c0809 100644 --- a/.github/workflows/build-and-test-differential.yaml +++ b/.github/workflows/build-and-test-differential.yaml @@ -24,7 +24,7 @@ on: type: string build-pre-command: required: false - default: nice -n 19 + default: "" type: string secrets: codecov-token: