|
10 | 10 | env: |
11 | 11 | cache-path: | |
12 | 12 | .git/modules |
13 | | - binutils |
14 | | - gdb |
15 | | - gcc |
16 | | - llvm |
17 | | - newlib |
18 | | - glibc |
19 | | - musl |
20 | | - uclib-ng |
21 | | - dejagnu |
22 | | - pk |
23 | | - qemu |
24 | | - spike |
| 13 | + binutils/.git |
| 14 | + gdb/.git |
| 15 | + gcc/.git |
| 16 | + llvm/.git |
| 17 | + newlib/.git |
| 18 | + glibc/.git |
| 19 | + musl/.git |
| 20 | + uclib-ng/.git |
| 21 | + dejagnu/.git |
| 22 | + pk/.git |
| 23 | + qemu/.git |
| 24 | + spike/.git |
25 | 25 | jobs: |
26 | 26 | cache: |
27 | 27 | name: Update Submodule Cache |
@@ -89,34 +89,29 @@ jobs: |
89 | 89 |
|
90 | 90 | - name: Generate Submodules List |
91 | 91 | id: cache-path |
92 | | - if: false |
93 | 92 | run: | |
94 | | - submodules="gdb:binutils" |
| 93 | + submodules="gdb binutils" |
95 | 94 | case "${{ matrix.mode }}" in |
96 | 95 | "linux") |
97 | | - submodules="$submodules:glibc";; |
| 96 | + submodules="$submodules glibc";; |
98 | 97 | "musl") |
99 | | - submodules="$submodules:musl";; |
| 98 | + submodules="$submodules musl";; |
100 | 99 | "uclibc") |
101 | | - submodules="$submodules:uclibc-ng";; |
| 100 | + submodules="$submodules uclibc-ng";; |
102 | 101 | "newlib") |
103 | | - submodules="$submodules:newlib";; |
| 102 | + submodules="$submodules newlib";; |
104 | 103 | *) |
105 | 104 | echo "Invalid Mode"; exit 1;; |
106 | 105 | esac |
107 | 106 | case "${{ matrix.compiler }}" in |
108 | 107 | "gcc") |
109 | | - submodules="$submodules:gcc";; |
| 108 | + submodules="$submodules gcc";; |
110 | 109 | "llvm") |
111 | | - submodules="$submodules:llvm";; |
| 110 | + submodules="$submodules llvm";; |
112 | 111 | *) |
113 | 112 | echo "Invalid Compiler"; exit 1;; |
114 | 113 | esac |
115 | | - submodules=$(echo $submodules | sed 's/:/\n/g') |
116 | | - submodules=$submodules$'\n'$(echo "$submodules" | sed -e 's/^/.git\/modules\//') |
117 | | - echo 'submodules<<EOF' >> $GITHUB_OUTPUT |
118 | | - echo "$submodules" >> $GITHUB_OUTPUT |
119 | | - echo 'EOF' >> $GITHUB_OUTPUT |
| 114 | + for submodule in $submodules; do git submodule update $submodule; done |
120 | 115 |
|
121 | 116 | - uses: actions/checkout@v4 |
122 | 117 |
|
|
0 commit comments