Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/dotnet-sdk.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .github/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions .github/go.sum

This file was deleted.

34 changes: 0 additions & 34 deletions .github/main.go

This file was deleted.

102 changes: 8 additions & 94 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,102 +11,16 @@ permissions:
pull-requests: write

jobs:
compile:
name: compile
runs-on: ubuntu-latest
env:
GAME_ID: 18190
RATOOLS_VERSION: v1.15.1
RALIBRETRO_DIR: ~/Installs/RALibretro-x64 # same as Makefile
DOTNET_ROOT_X64: C:\\Programs\\dotnet
DOTNET_ROOT: C:\\Programs\\dotnet
WINEPATH: C:\\Programs\\dotnet
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.23.0'

- name: Set ENV vars for github
run: echo "RATOOLS_DIR=~/Installs/RATools-${{env.RATOOLS_VERSION}}" >> $GITHUB_ENV # same as Makefile

- name: Create folders
run: mkdir -p ${{env.RATOOLS_DIR}} && mkdir -p ${{env.RALIBRETRO_DIR}}/RACache/Data

- name: Install wine
run: sudo apt-get update && sudo apt-get install -y wine

- name: Set Winecfg
run: winecfg /v win10

- name: Get RATools CLI
run: wget -O ${{env.RATOOLS_DIR}}/RATools-${{env.RATOOLS_VERSION}}.zip "https://github.com/Jamiras/RATools/releases/download/${{env.RATOOLS_VERSION}}/RATools-${{env.RATOOLS_VERSION}}.zip"

- name: Unpack RATools
run: unzip ${{env.RATOOLS_DIR}}/RATools-${{env.RATOOLS_VERSION}}.zip -d ${{env.RATOOLS_DIR}}

- name: Get .NET SDK 6.0.428
run: bash .github/dotnet-sdk.sh

- name: Get Code Notes
run: make notes

- name: Compile Code
run: make compile

- name: Upload Code Notes
uses: actions/upload-artifact@v4
with:
name: notes-json
path: ${{env.RALIBRETRO_DIR}}/RACache/Data/${{env.GAME_ID}}-Notes.json

- name: Upload Achievement and Leaderboard Code
uses: actions/upload-artifact@v4
with:
name: user-text
path: ${{env.RALIBRETRO_DIR}}/RACache/Data/${{env.GAME_ID}}-User.txt

- name: Upload Rich Presence
uses: actions/upload-artifact@v4
with:
name: rich-text
path: ${{env.RALIBRETRO_DIR}}/RACache/Data/${{env.GAME_ID}}-Rich.txt

autocr:
name: AutoCR
needs: compile
runs-on: ubuntu-latest
env:
GAME_ID: 18190
steps:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Use autocr-cli
uses: actions/checkout@v4
with:
repository: joshraphael/autocr-cli
ref: v1.2.3

- name: Download Code Notes
uses: actions/download-artifact@v4
with:
name: notes-json

- name: Download Achievement and Leaderboard Code
uses: actions/download-artifact@v4
with:
name: user-text

- name: Download Rich Presence
uses: actions/download-artifact@v4
with:
name: rich-text

- name: Run AutoCR
run: ./index.js --notes ${{env.GAME_ID}}-Notes.json --user ${{env.GAME_ID}}-User.txt --rich ${{env.GAME_ID}}-Rich.txt --severity error --report
- name: Audit Where is my Heart? RAScript
uses: joshraphael/rascript-audit@1dd2bd25f657aee4eb2cf18db15b27cbd0a270c9
with:
id: wimh
game-id: 18190
rascript: 18190.rascript
report: true
severity: error
Loading