Reccmp action testing (#467)

* add reccmp-action to workflow
This commit is contained in:
Dethrace Engineering Department 2025-08-20 15:59:27 -07:00 committed by GitHub
parent d8fb9f21a8
commit 97ae6a4830
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 4 deletions

View File

@ -115,3 +115,18 @@ jobs:
generate_release_notes: true
files: |
artifacts/**
reccmp:
name: Verify decomp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dethrace-labs/reccmp-action@main
with:
cmake_flags: -G Ninja -DCMAKE_BUILD_TYPE=Debug -DMSVC_42_FOR_RECCMP=on
target: CARM95
report_filename: reccmp/report.json
original_binary_url: https://archive.org/download/carm-95/CARM95.EXE
original_binary_filename: CARM95.EXE

View File

@ -32,13 +32,13 @@ docker run --platform linux/amd64 \
-e CMAKE_FLAGS="-G Ninja -DCMAKE_BUILD_TYPE=Debug -DMSVC_42_FOR_RECCMP=on" \
-v <PATH_TO_DETHRACE_DIR>:/source \
-v <PATH_TO_DETHRACE_BUILD_DIR>:/build \
-v <PATH_TO_CARMA_DIR>:/orginal:ro \
-v <PATH_TO_CARMA_DIR>:/original:ro \
msvc420-wine -- \
reccmp-reccmp --target CARM95 --silent --html reccmp-report.html --json /source/reccmp/report.json
reccmp-reccmp --target CARM95 --silent --html report.html --json /source/reccmp/report.json
```
After running, a `reccmp-report.html` file will be created in the build-msvc420 directory.
After running, a `report.html` file will be created in the build-msvc420 directory.
### Make a pull request change
The pull request will fail if the `reccmp/report.json` file is different from the version generated during build
The pull request will fail if the `reccmp/report.json` file is different from the version generated during build.