Skip to content

Commit

Permalink
ci(sync-files): split build-and-test to daily and on push
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 Jun 13, 2024
1 parent 7bc9ae0 commit f5c3659
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5c3659

Please sign in to comment.