Skip to content

Commit

Permalink
Simplify commands to generate screenshot on pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hansbonini committed Jul 4, 2024
1 parent 4b30436 commit fab15e1
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,19 @@ jobs:
make WORKSPACE="$GHWORKSPACE" NAME="Altered Beast" VERSION="US" ASM68K_SWITCHES="//m //p //k" build
- name: Run Blastem and record movie
run: |
$timer = New-Object timers.timer
$timer.interval = 20000
Register-ObjectEvent -InputObject $timer -EventName Elapsed -SourceIdentifier Timer.Output -Action { Stop-Process $(Get-Process retroarch | select -expand id) }
$timer.Enabled = $true
Write-Host "Running Blastem trough Retroarch"
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe --libretro=${{github.workspace}}\tools\RetroArch-Win64\picodrive_libretro.dll "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\blastem.png" --appendconfig="retroarch.cfg"
Write-Host "Waiting Recording"
while ($true) { Start-Sleep -Seconds 1 }
Start-Sleep -Seconds 20
Stop-Process $(Get-Process retroarch | select -expand id)
- name: Run Genesis Plus GX and record movie
run: |
$timer = New-Object timers.timer
$timer.interval = 20000
Register-ObjectEvent -InputObject $timer -EventName Elapsed -SourceIdentifier Timer.Output -Action { Stop-Process $(Get-Process retroarch | select -expand id) }
$timer.Enabled = $true
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe --libretro=${{github.workspace}}\tools\RetroArch-Win64\picodrive_libretro.dll "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\gensplusgx.png" --appendconfig="retroarch.cfg"
while ($true) { Start-Sleep -Seconds 1 }
Start-Sleep -Seconds 20
Stop-Process $(Get-Process retroarch | select -expand id)
- name: Run Picodrive and record movie
run: |
$timer = New-Object timers.timer
$timer.interval = 20000
Register-ObjectEvent -InputObject $timer -EventName Elapsed -SourceIdentifier Timer.Output -Action { Stop-Process $(Get-Process retroarch | select -expand id) }
$timer.Enabled = $true
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe --libretro=${{github.workspace}}\tools\RetroArch-Win64\picodrive_libretro.dll "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\picodrive.png" --appendconfig="retroarch.cfg"
while ($true) { Start-Sleep -Seconds 1 }
Start-Sleep -Seconds 20
Stop-Process $(Get-Process retroarch | select -expand id)
- name: GIT Commit Build Records
if: github.event_name == 'push'
run: |
Expand Down

0 comments on commit fab15e1

Please sign in to comment.