@@ -139,6 +139,41 @@ jobs:
139139 with :
140140 run_install : false
141141
142+ - name : Get linked dependency versions
143+ id : dep-versions
144+ shell : bash
145+ run : |
146+ SM_SHA=$(git ls-remote https://github.com/AQBot-Desktop/stream-monaco.git refs/heads/main | cut -f1)
147+ MS_SHA=$(git ls-remote https://github.com/AQBot-Desktop/markstream-vue.git refs/heads/aqbot-custom | cut -f1)
148+ echo "cache-key=linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
149+
150+ - name : Cache linked dependencies
151+ id : cache-linked-deps
152+ uses : actions/cache@v4
153+ with :
154+ path : |
155+ ../stream-monaco
156+ ../markstream-vue
157+ key : ${{ steps.dep-versions.outputs.cache-key }}
158+
159+ - name : Build linked dependencies
160+ if : steps.cache-linked-deps.outputs.cache-hit != 'true'
161+ shell : bash
162+ run : |
163+ cd ..
164+
165+ git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
166+ cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
167+ rm -rf node_modules .git
168+ cd ..
169+
170+ git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
171+ cd markstream-vue && pnpm install --frozen-lockfile
172+ pnpm run build:parser
173+ cd packages/markstream-react && pnpm build && cd ../..
174+ rm -rf node_modules packages/*/node_modules playground*/node_modules .git
175+ cd ..
176+
142177 - name : Install frontend dependencies
143178 run : pnpm install --frozen-lockfile
144179
@@ -239,6 +274,39 @@ jobs:
239274 with :
240275 run_install : false
241276
277+ - name : Get linked dependency versions
278+ id : dep-versions
279+ run : |
280+ SM_SHA=$(git ls-remote https://github.com/AQBot-Desktop/stream-monaco.git refs/heads/main | cut -f1)
281+ MS_SHA=$(git ls-remote https://github.com/AQBot-Desktop/markstream-vue.git refs/heads/aqbot-custom | cut -f1)
282+ echo "cache-key=linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
283+
284+ - name : Cache linked dependencies
285+ id : cache-linked-deps
286+ uses : actions/cache@v4
287+ with :
288+ path : |
289+ ../stream-monaco
290+ ../markstream-vue
291+ key : ${{ steps.dep-versions.outputs.cache-key }}
292+
293+ - name : Build linked dependencies
294+ if : steps.cache-linked-deps.outputs.cache-hit != 'true'
295+ run : |
296+ cd ..
297+
298+ git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
299+ cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
300+ rm -rf node_modules .git
301+ cd ..
302+
303+ git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
304+ cd markstream-vue && pnpm install --frozen-lockfile
305+ pnpm run build:parser
306+ cd packages/markstream-react && pnpm build && cd ../..
307+ rm -rf node_modules packages/*/node_modules playground*/node_modules .git
308+ cd ..
309+
242310 - name : Install frontend dependencies
243311 run : pnpm install --frozen-lockfile
244312
0 commit comments