-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (51 loc) · 2.85 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: ci
run-name: Building Sega Genesis ROM
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/[email protected]
with:
# Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default.
architecture: windows/amd64
- name: Prepare Build
run: |
mkdir build
echo "" > '${{github.workspace}}\build\Altered Beast (US).bin'
echo "" > '${{github.workspace}}\build\Altered Beast (US).txt'
- name: Create Screenshots directory
id: createscreenshotsdir
run: |
Remove-Item "${{github.workspace}}\screenshots" -Recurse -ErrorAction Ignore
mkdir screenshots
- name: Execute asm68k
run: |
$GHWORKSPACE="${{ github.workspace }}"
$GHWORKSPACE=$GHWORKSPACE.replace("\", "/")
make WORKSPACE="$GHWORKSPACE" NAME="Altered Beast" VERSION="US" ASM68K_SWITCHES="//m //p //k" build
- name: Run Picodrive and record movie
run: |
Invoke-Expression '${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\picodrive_libretro.dll" --appendconfig="${{github.workspace}}\retroarch.cfg" --record="${{github.workspace}}\screenshots\picodrive.gif" --max-frames=2600 "${{github.workspace}}\build\Altered Beast (US).bin" --verbose' -ErrorAction SilentlyContinue
Start-Sleep -Seconds 20
- name: Run Genesis Plus Gx and record movie
run: |
Invoke-Expression '${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\genesis_plus_gx_libretro.dll" --appendconfig="${{github.workspace}}\retroarch.cfg" --record="${{github.workspace}}\screenshots\genesisplusgx.gif" --max-frames=2600 "${{github.workspace}}\build\Altered Beast (US).bin" --verbose' -ErrorAction SilentlyContinue
Start-Sleep -Seconds 20
- name: Run Blastem and record movie
run: |
Invoke-Expression '${{github.workspace}}\tools\RetroArch-Win64\retroarch.exe -L "${{github.workspace}}\tools\RetroArch-Win64\cores\blastem_libretro.dll" --appendconfig="${{github.workspace}}\retroarch.cfg" --record="${{github.workspace}}\screenshots\blastem.gif" --max-frames=2600 "${{github.workspace}}\build\Altered Beast (US).bin" --verbose' -ErrorAction SilentlyContinue
Start-Sleep -Seconds 20
- name: GIT Commit Build Records
if: github.event_name == 'push'
run: |
git config --global user.name "Hans Bonini"
git config --global user.email "[email protected]"
git add screenshots screenshots/\*
git commit -m "Adding screenshots from build ${{ github.sha }}"
git push