Skip to content

Commit f5c3659

Browse files
author
M. Fatih Cırıt
committed
ci(sync-files): split build-and-test to daily and on push
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 7bc9ae0 commit f5c3659

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

.github/sync-files.yaml

+19-26
Original file line numberDiff line numberDiff line change
@@ -32,38 +32,31 @@
3232
- repository: autowarefoundation/autoware_common
3333
files:
3434
- source: .github/workflows/build-and-test.yaml
35+
dest: .github/workflows/build-and-test-daily.yaml
3536
pre-commands: |
36-
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}
37-
37+
sd ' build-and-test' ' build-and-test-daily' {source}
38+
sd 'on:\n push:' 'on:' {source}
39+
sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, X64]' {source}
40+
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source}
3841
sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
39-
sd -- \
40-
" include:" \
41-
" container-suffix:
42-
- \"\"
43-
- -cuda
44-
include:" {source}
45-
- source: .github/workflows/build-and-test-differential-self-hosted.yaml
42+
sd -- ' include:' ' container-suffix:\n - ""\n - -cuda\n include:' {source}
43+
- source: .github/workflows/build-and-test.yaml
44+
dest: .github/workflows/build-and-test-daily-arm64.yaml
4645
pre-commands: |
47-
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}
48-
46+
sd ' build-and-test' ' build-and-test-daily-arm64' {source}
47+
sd 'on:\n push:' 'on:' {source}
48+
sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, ARM64]' {source}
49+
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source}
4950
sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
50-
sd -- \
51-
" include:" \
52-
" container-suffix:
53-
- \"\"
54-
- -cuda
55-
include:" {source}
56-
- source: .github/workflows/build-and-test-self-hosted.yaml
51+
sd -- ' include:' ' container-suffix:\n - ""\n - -cuda\n include:' {source}
52+
- source: .github/workflows/build-and-test.yaml
53+
dest: .github/workflows/build-and-test.yaml
5754
pre-commands: |
58-
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}
59-
55+
sd '\n schedule:\n - cron: 0 0 \* \* \*' '' {source}
56+
sd 'runs-on: ubuntu-latest' 'runs-on: [self-hosted, linux, X64]' {source}
57+
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:$1-latest-prebuilt' {source}
6058
sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
61-
sd -- \
62-
" include:" \
63-
" container-suffix:
64-
- \"\"
65-
- -cuda
66-
include:" {source}
59+
sd -- ' include:' ' container-suffix:\n - -cuda\n include:' {source}
6760
- source: .github/workflows/check-build-depends.yaml
6861
- source: .github/workflows/clang-tidy-pr-comments.yaml
6962
- source: .github/workflows/clang-tidy-pr-comments-manually.yaml

0 commit comments

Comments
 (0)