Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 8c9e5ca

Browse files
committed
fix dependencies build.
1 parent 8873bdd commit 8c9e5ca

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,32 @@ jobs:
3737
with:
3838
dotnet-version: '10.0'
3939

40-
- name: Install Python setuptools
40+
- name: Install setuptools
4141
run: pip install setuptools
4242

43+
- name: Restore build cache
44+
uses: actions/cache/restore@v4
45+
id: build-cache
46+
with:
47+
key: build_cache-${{ hashFiles('build/.cachesalt', 'package-lock.json') }}
48+
path: .build/build_cache
49+
50+
- name: Extract build cache
51+
if: steps.build-cache.outputs.cache-hit == 'true'
52+
run: tar -xzf .build/build_cache/cache.tgz
53+
4354
- name: Install dependencies
55+
if: steps.build-cache.outputs.cache-hit != 'true'
4456
run: npm ci
4557

46-
- name: Check environment requirements
47-
run: npm run check-env
58+
- name: Create build cache archive
59+
if: steps.build-cache.outputs.cache-hit != 'true'
60+
run: |
61+
set -e
62+
mkdir -p .build
63+
node build/listBuildCacheFiles.js .build/build_cache_list.txt
64+
mkdir -p .build/build_cache
65+
tar -czf .build/build_cache/cache.tgz --files-from .build/build_cache_list.txt
4866
4967
- name: Verify installation
5068
run: |

0 commit comments

Comments
 (0)