Skip to content

Commit ba4c1a0

Browse files
authored
Update main.yml
1 parent 6cffeb8 commit ba4c1a0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

β€Ž.github/workflows/main.ymlβ€Ž

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ EOF
155155
sudo tailscale up --authkey=${{ secrets.TAILSCALE_AUTH_KEY }} --hostname=rust-builder-${{ github.run_id }}
156156
157157
# Get Tailscale IP
158-
sleep 5
158+
sleep 10
159159
TS_IP=$(tailscale ip -4)
160160
echo "TAILSCALE_IP=$TS_IP" >> $GITHUB_ENV
161+
echo "Tailscale IP: $TS_IP"
161162
162163
- name: Setup SSH Access
163164
run: |
@@ -174,7 +175,9 @@ EOF
174175
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
175176
sudo systemctl restart ssh
176177
177-
echo "SSH_CREDS=rustuser@$TAILSCALE_IP | Password: $SSH_PASSWORD" >> $GITHUB_ENV
178+
# Store SSH credentials safely
179+
echo "SSH_USER=rustuser" >> $GITHUB_ENV
180+
echo "SSH_PASSWORD=$SSH_PASSWORD" >> $GITHUB_ENV
178181
179182
- name: Create project template
180183
run: |
@@ -216,17 +219,17 @@ EOF
216219
echo "========================================"
217220
echo ""
218221
echo "πŸ“‘ SSH ACCESS:"
219-
echo " Address: $TAILSCALE_IP"
220-
echo " Username: rustuser"
221-
echo " Password: $(echo $SSH_CREDS | grep -o 'Password: .*' | cut -d' ' -f2-)"
222+
echo " Address: ${{ env.TAILSCALE_IP }}"
223+
echo " Username: ${{ env.SSH_USER }}"
224+
echo " Password: ${{ env.SSH_PASSWORD }}"
222225
echo ""
223226
echo "πŸ”§ BUILD TOOLS:"
224227
echo " Rust target: aarch64-unknown-linux-musl"
225228
echo " Linker: aarch64-linux-gnu-gcc"
226229
echo " Default RUSTFLAGS: -C target-feature=+a53 -C opt-level=z -C link-arg=-s"
227230
echo ""
228231
echo "πŸ“‚ PROJECT STRUCTURE:"
229-
echo " /home/runner/work/$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)/"
232+
echo " Current directory: $(pwd)"
230233
echo " β”œβ”€β”€ Cargo.toml"
231234
echo " β”œβ”€β”€ src/main.rs"
232235
echo " └── build-menu.sh (interactive build script)"

0 commit comments

Comments
Β (0)