This repository was archived by the owner on Jan 10, 2025. It is now read-only.
Repository navigation
60 lines (53 loc) · 2.31 KB
/
Copy path0xf_gh_runner_macos_debug.yaml
File metadata and controls
60 lines (53 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 0xf ➼ Debug (gh-runner) macOS-12
#Image: https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
on:
workflow_dispatch:
env:
#Authenticate with Ephemeral Key: https://login.tailscale.com/admin/settings/keys
TSKEY: tskey-auth-ksYVhg1CNTRL-A5QDDdH66vU2pVMcgBy2wUYwzgL4Sv2F
THOST: gh-runner-macos
TUSER: runner
jobs:
build:
runs-on: macos-latest
#Default Timeout= 6 Hr (360 Mins) : https://nesin.io/blog/github-action-timeout
#Docs: https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration
timeout-minutes: 690000
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
- name: Setup Tailscale
run: |
# https://github.com/tailscale/tailscale/wiki/Tailscaled-on-macOS
go install -v tailscale.com/cmd/tailscale@main
go install -v tailscale.com/cmd/tailscaled@main
sudo $HOME/go/bin/tailscaled --tun=userspace-networking --socks5-server=localhost:9025 --outbound-http-proxy-listen=localhost:9025 &
#Authenticate with Ephemeral Key: https://login.tailscale.com/admin/settings/keys
sudo $HOME/go/bin/tailscale up --ssh --hostname="${{ env.THOST }}" --authkey="${{ env.TSKEY }}"
#Check Status
sudo $HOME/go/bin/tailscale status --peers=false
#Get SSH String
SSH_IP=$(sudo tailscale ip -4 | tr -d '\n')
ssh_connection_string="SSH: ssh $USER@$SSH_IP"
echo -e "$ssh_connection_string"
#Also shows up on: https://login.tailscale.com/admin/machines
# - name: Install CoreUtils
# #if: env.versions_same != 'true'
# run: |
# sudo apt-get install -y bison build-essential ca-certificates ccache flex '*glibc*' jq 'libssl*' lzip musl musl-dev musl-tools 'openssl*' p7zip-full pkg-config qemu-user-static wget
# continue-on-error: true
# - name: Install Deps
# run: |
# cargo install -f cross
# continue-on-error: true
- name: Run Custom Cmd
run: |
echo "Hellow"
continue-on-error: true
- name: Breakpoint || Sleep ∞
run: |
while :; do sleep 1; done