diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff977cc..22ee056 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,24 +27,30 @@ 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 ${{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" --verbose - 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 -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" - 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 -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" - Start-Sleep -Seconds 20 - Stop-Process $(Get-Process retroarch | select -expand id) - name: GIT Commit Build Records if: github.event_name == 'push' run: | git config --global user.name "Hans Bonini" git config --global user.email "hans@ysolutions.com.br" git add screenshots - git commit -m "Adding screenshots from build `${{ github.sha }}`" + git commit -m "Adding screenshots from build ${{ github.sha }}" git push \ No newline at end of file diff --git a/retroarch.cfg b/retroarch.cfg index fc257a4..4350443 100644 --- a/retroarch.cfg +++ b/retroarch.cfg @@ -1 +1,3 @@ +audio_driver = "null" +midi_driver = "null" video_record_quality = "8" \ No newline at end of file