Skip to content

Commit

Permalink
Pwease
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Oct 19, 2024
1 parent 62e48bf commit 2f5ca7c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,15 @@ jobs:
- name: Install SFML with vcpkg
run: vcpkg install sfml

- name: Setup SSH key and Install submodules
- name: Set up SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KY }}
run: |
mkdir C:\Users\runneradmin\.ssh
echo "$SSH_PRIVATE_KEY" | Out-File -Encoding ascii C:\Users\runneradmin\.ssh\id_rsa
# Adjusting permissions using icacls
icacls C:\Users\runneradmin\.ssh\id_rsa /inheritance:r
icacls C:\Users\runneradmin\.ssh\id_rsa /grant:r "$($env:USERDOMAIN)\$($env:USERNAME):(R)"
icacls C:\Users\runneradmin\.ssh\id_rsa /grant:r "$($env:USERDOMAIN)\Administrators:(R)"
echo "StrictHostKeyChecking no" >> C:\Users\runneradmin\.ssh\config
ssh-keyscan github.com >> C:\Users\runneradmin\.ssh\known_hosts
git submodule update --init --recursive
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_host
git submodule update --init --recursives
- name: Configure and build
run: |
Expand Down

0 comments on commit 2f5ca7c

Please sign in to comment.