From f5c3659f48973d8a33534c7f41f3546f69059060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Wed, 12 Jun 2024 15:48:41 +0300 Subject: [PATCH] ci(sync-files): split build-and-test to daily and on push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/sync-files.yaml | 45 +++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 5b60a371abd93..a81c1921451d5 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -32,38 +32,31 @@ - repository: autowarefoundation/autoware_common files: - source: .github/workflows/build-and-test.yaml + dest: .github/workflows/build-and-test-daily.yaml pre-commands: | - sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source} - + sd ' build-and-test' ' build-and-test-daily' {source} + sd 'on:\n push:' 'on:' {source} + sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, X64]' {source} + sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source} sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source} - sd -- \ - " include:" \ - " container-suffix: - - \"\" - - -cuda - include:" {source} - - source: .github/workflows/build-and-test-differential-self-hosted.yaml + sd -- ' include:' ' container-suffix:\n - ""\n - -cuda\n include:' {source} + - source: .github/workflows/build-and-test.yaml + dest: .github/workflows/build-and-test-daily-arm64.yaml pre-commands: | - sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source} - + sd ' build-and-test' ' build-and-test-daily-arm64' {source} + sd 'on:\n push:' 'on:' {source} + sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, ARM64]' {source} + sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source} sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source} - sd -- \ - " include:" \ - " container-suffix: - - \"\" - - -cuda - include:" {source} - - source: .github/workflows/build-and-test-self-hosted.yaml + sd -- ' include:' ' container-suffix:\n - ""\n - -cuda\n include:' {source} + - source: .github/workflows/build-and-test.yaml + dest: .github/workflows/build-and-test.yaml pre-commands: | - sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source} - + sd '\n schedule:\n - cron: 0 0 \* \* \*' '' {source} + sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, X64]' {source} + sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source} sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source} - sd -- \ - " include:" \ - " container-suffix: - - \"\" - - -cuda - include:" {source} + sd -- ' include:' ' container-suffix:\n - -cuda\n include:' {source} - source: .github/workflows/check-build-depends.yaml - source: .github/workflows/clang-tidy-pr-comments.yaml - source: .github/workflows/clang-tidy-pr-comments-manually.yaml