Skip to content

Commit

Permalink
feat: 尝试解决git无法克隆的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yangmingming committed Oct 21, 2024
1 parent 231b902 commit 88107d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- run: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- run: pnpm install
# 只安装intel版的sharp库即可, m1上可以运行intel的代码
- run: pnpm install --platform=darwin --arch=x64 sharp
- run: cd ./client && pnpm install && cd ..
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
# 先执行electron的构建, 节约调试时间
- run: ssh-keyscan -t rsa github.com > %USERPROFILE%/.ssh/known_hosts
- name: Install dependencies
run: pnpm install
# sharp需要单独安装
Expand Down

0 comments on commit 88107d6

Please sign in to comment.