Skip to content

Commit 732de9c

Browse files
committed
add debug workflow
1 parent aed48d7 commit 732de9c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/debug.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Debug macOS Runner
2+
3+
on: [push]
4+
5+
jobs:
6+
debug:
7+
runs-on: macos-latest
8+
steps:
9+
- name: Check out repository
10+
uses: actions/checkout@v3
11+
12+
- name: Install SSH server
13+
run: |
14+
sudo systemsetup -f -setremotelogin on
15+
echo "${{ secrets.SARINA_SSH_KEY }}" >> ~/.ssh/authorized_keys
16+
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
17+
sudo launchctl start com.openssh.sshd
18+
19+
- name: Output SSH Command
20+
run: echo "ssh -i <path-to-private-key> -o 'StrictHostKeyChecking=no' runner@$(hostname)"
21+
22+
- name: Keep Job Running
23+
run: |
24+
while true; do sleep 100; done

0 commit comments

Comments
 (0)