Skip to content

Commit

Permalink
t1
Browse files Browse the repository at this point in the history
  • Loading branch information
doki-nordic committed Dec 13, 2024
1 parent 71baa6c commit 6812343
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ jobs:

- shell: cmd
if: startsWith(github.event.inputs.os, 'windows')
run: echo "_PLAYGROUND_IGNORE_PYTHON=python.exe" >> %GITHUB_ENV%
run: echo _PLAYGROUND_IGNORE_PYTHON=python.exe >> %GITHUB_ENV%

- shell: bash
if: (!startsWith(github.event.inputs.os, 'windows'))
run: echo "_PLAYGROUND_IGNORE_PYTHON=python3" >> $GITHUB_ENV
run: echo _PLAYGROUND_IGNORE_PYTHON=python3 >> $GITHUB_ENV

# Collect environment variables for different shells

Expand Down Expand Up @@ -174,7 +174,9 @@ jobs:
if: (!startsWith(github.event.inputs.os, 'windows'))
working-directory: ${{ runner.temp }}/repo
run: |
sudo -u "`whoami`" ${{ env.TTYD_CMD }} -W -d 0 -p 80 -w '${{ github.workspace }}' -c 'runner:${{ secrets.PASSWORD }}' bash &
sudo -u "`whoami`" ${{ env.TTYD_CMD }} -W -d 0 -p 8080 -w '${{ github.workspace }}' -c 'runner:${{ secrets.PASSWORD }}' bash &
sudo ps aux
ps aux
sleep 21600
- name: Your work starts here (windows non-bash)
Expand All @@ -184,7 +186,7 @@ jobs:
env:
RUNNER_TEMP: ${{ runner.temp }}
run: |
start /i /b "" %RUNNER_TEMP%\ttyd.exe -W -d 0 -p 80 -w "${{ github.workspace }}" -c "runneradmin:${{ secrets.PASSWORD }}" cmd.exe
start /i /b "" %RUNNER_TEMP%\ttyd.exe -W -d 0 -p 8080 -w "${{ github.workspace }}" -c "runneradmin:${{ secrets.PASSWORD }}" cmd.exe
python -c "import time; time.sleep(21600)"
# Upload an Artifact
Expand Down

0 comments on commit 6812343

Please sign in to comment.