Skip to content

Commit

Permalink
fix ci...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoguillansky-gpsw committed Jun 21, 2022
1 parent 899f7ed commit 40c5f54
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: Vampire/setup-wsl@v1
with:
distribution: Ubuntu-20.04

- name: Build
run: |
pip install meson
Expand All @@ -28,3 +32,26 @@ jobs:
python .\build_scripts\configure.py && `
python .\build_scripts\build.py
- name: Setup tmate
shell: wsl-bash {0}
if: always()
run: |
sudo apt -y update
#Install tmate
sudo apt-get install -y tmate openssh-client
# Generate ssh key if needed
[ -e ~/.ssh/id_rsa ] || ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ""
# Enable Keep Alive
sudo echo ClientAliveInterval 300 >> /etc/ssh/sshd_config
sudo echo ClientAliveCountMax 2 >> /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
# Run deamonized tmate
echo Running tmate...
tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready
# Wait for connection
while [ -S /tmp/tmate.sock ]; do
# Print connection info
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
sleep 1
done

0 comments on commit 40c5f54

Please # to comment.