File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -311,11 +311,26 @@ jobs:
311311 uses :
webfactory/[email protected] 312312 with :
313313 ssh-private-key : ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
314+ - name : Setup SSH config
315+ run : |
316+ mkdir -p ~/.ssh
317+ echo "Host github.com" > ~/.ssh/config
318+ echo " User git" >> ~/.ssh/config
319+ echo " IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
320+ echo " StrictHostKeyChecking no" >> ~/.ssh/config
321+ chmod 600 ~/.ssh/config
314322 - name : Setup Cargo config
315323 run : |
316324 mkdir -p ~/.cargo
317325 echo '[net]' > ~/.cargo/config.toml
318326 echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
327+ - name : Debug SSH agent
328+ run : ssh-add -l
329+ - name : Build with cargo chef
330+ run : cargo chef cook --release --recipe-path recipe.json
331+ env :
332+ CARGO_NET_GIT_FETCH_WITH_CLI : true
333+ SSH_AUTH_SOCK : $SSH_AUTH_SOCK
319334 - name : Build and push
320335 uses : docker/build-push-action@v3
321336 env :
You can’t perform that action at this time.
0 commit comments