Merge branch 'DavidSM64:master' into match_printf_func_800B452C

This commit is contained in:
tonyspumoni
2022-10-22 11:30:34 -06:00
committed by GitHub
4 changed files with 46 additions and 15 deletions
+5 -7
View File
@@ -28,13 +28,11 @@ jobs:
- name: Verify ROM
run: if [[ $(echo "0cb115d8716dbbc2922fda38e533b9fe63bb9670 baseroms/dkr.z64" | sha1sum -c --quiet -) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi
- name: Build Recomp
- name: Download Recomp
run: |
cd tools/ido-static-recomp/
python3 build.py ido/5.3 -O2
cp build5.3/out/usr/bin/cc build5.3/out/cc
cp build5.3/out/usr/lib/* build5.3/out/
cd ../../
wget -q -O ido-static-recomp.tar.gz https://github.com/decompals/ido-static-recomp/releases/download/v0.1/ido-5.3-recomp-ubuntu-latest.tar.gz
mkdir -p tools/ido-static-recomp/build5.3/out
tar -xvzf ido-static-recomp.tar.gz -C tools/ido-static-recomp/build5.3/out
- name: Build Tools
run: |
@@ -63,4 +61,4 @@ jobs:
run: make clean
- name: Verify NON_EQUIVALENT
run: make NON_EQUIVALENT=1
run: make NON_EQUIVALENT=1
+15 -7
View File
@@ -28,13 +28,11 @@ jobs:
- name: Verify ROM
run: if [[ $(echo "0cb115d8716dbbc2922fda38e533b9fe63bb9670 baseroms/dkr.z64" | sha1sum -c --quiet -) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi
- name: Build Recomp
- name: Download Recomp
run: |
cd tools/ido-static-recomp/
python3 build.py ido/5.3 -O2
cp build5.3/out/usr/bin/cc build5.3/out/cc
cp build5.3/out/usr/lib/* build5.3/out/
cd ../../
wget -q -O ido-static-recomp.tar.gz https://github.com/decompals/ido-static-recomp/releases/download/v0.1/ido-5.3-recomp-ubuntu-latest.tar.gz
mkdir -p tools/ido-static-recomp/build5.3/out
tar -xvzf ido-static-recomp.tar.gz -C tools/ido-static-recomp/build5.3/out
- name: Build Tools
run: |
@@ -63,4 +61,14 @@ jobs:
run: make clean
- name: Verify NON_EQUIVALENT
run: make NON_EQUIVALENT=1
run: make NON_EQUIVALENT=1
- name: Update decomp score in README
run: ./score.sh --update-readme
- name: Update PR
uses: test-room-7/action-update-file@v1
with:
file-path: README.md
commit-msg: Update score in README
github-token: ${{ secrets.GITHUB_TOKEN }}
+2
View File
@@ -113,6 +113,7 @@ s32 is_drumstick_unlocked(void) {
}
```
<!-- README_SCORE_BEGIN -->
As of October 3rd, 2022, this is our current score:
```
==========================================
@@ -139,6 +140,7 @@ As of October 3rd, 2022, this is our current score:
We are racing in Ancient Lake. (Lap 1/3)
==========================================
```
<!-- README_SCORE_END -->
---
+24 -1
View File
@@ -1 +1,24 @@
python3 ./tools/python/score.py "$@"
if [[ $1 == '--update-readme' ]]; then
export NEW_SCORE=$(python3 ./tools/python/score.py)
echo $NEW_SCORE
python3 - <<'EOF' > README.md.tmp
import sys
import os
import re
from datetime import datetime
BEGIN = '<!-- README_SCORE_BEGIN -->'
END = '<!-- README_SCORE_END -->'
DATE_STR = datetime.now().strftime('As of %B %-d, %Y, this is our current score:')
print(
re.sub(
fr'(?s).{BEGIN}.*{END}',
f'\n{BEGIN}\n{DATE_STR}\n```\n{os.environ["NEW_SCORE"]}\n```\n{END}',
open('README.md', 'r').read()
)
)
EOF
mv README.md.tmp README.md
else
python3 ./tools/python/score.py "$@"
fi