1 parent f83ea34 commit 9212053Copy full SHA for 9212053
1 file changed
.github/workflows/build.yml
@@ -28,11 +28,25 @@ jobs:
28
strategy:
29
matrix:
30
configuration: [Release, Debug]
31
-
+
32
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
40
- name: Checkout
41
uses: actions/checkout@v5
42
43
+ - name: Clone submodule via SSH
44
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
50
- name: Cache Xcode DerivedData
51
uses: actions/cache@v5
52
with:
0 commit comments