Skip to content

Commit

Permalink
Replace timer by --max-frames on retroarch recording
Browse files Browse the repository at this point in the history
  • Loading branch information
hansbonini committed Jul 5, 2024
1 parent 5ea5da2 commit 826b699
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,13 @@ 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 = 50000
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 -L "${{github.workspace}}\tools\RetroArch-Win64\cores\blastem_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\blastem.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --nogui --verbose
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\blastem_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\blastem.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --max-frames=2600 --verbose
- name: Run Genesis Plus GX and record movie
run: |
$timer = New-Object timers.timer
$timer.interval = 50000
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 -L "${{github.workspace}}\tools\RetroArch-Win64\cores\genesis_plus_gx_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\gensplusgx.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --nogui --verbose
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\genesis_plus_gx_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\gensplusgx.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --max-frames=2600 --verbose
- name: Run Picodrive and record movie
run: |
$timer = New-Object timers.timer
$timer.interval = 50000
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 -L "${{github.workspace}}\tools\RetroArch-Win64\cores\picodrive_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\picodrive.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --nogui --verbose
${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\picodrive_libretro.dll" "${{github.workspace}}\build\Altered Beast (US).bin" --record="${{github.workspace}}\screenshots\picodrive.png" --appendconfig="${{github.workspace}}\retroarch.cfg" --max-frames=2600 --verbose
- name: GIT Commit Build Records
if: github.event_name == 'push'
run: |
Expand Down

0 comments on commit 826b699

Please sign in to comment.