Skip to content

Commit 9212053

Browse files
committed
Update workflow settings
1 parent f83ea34 commit 9212053

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,25 @@ jobs:
2828
strategy:
2929
matrix:
3030
configuration: [Release, Debug]
31-
31+
3232
steps:
33+
- name: Setup SSH
34+
run: |
35+
mkdir -p ~/.ssh
36+
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
37+
chmod 600 ~/.ssh/id_ed25519
38+
ssh-keyscan github.com >> ~/.ssh/known_hosts
39+
3340
- name: Checkout
3441
uses: actions/checkout@v5
3542

43+
- name: Clone submodule via SSH
44+
run: |
45+
# 清除 actions/checkout 设置的 HTTPS insteadOf,确保使用 SSH
46+
git config --unset-all url."https://github.com/".insteadOf || true
47+
git submodule update --init --recursive
48+
ls -la Mousecape/Mousecape
49+
3650
- name: Cache Xcode DerivedData
3751
uses: actions/cache@v5
3852
with:

0 commit comments

Comments
 (0)