Build isledecomp in GH actions, fix mypy complaint

This commit is contained in:
disinvite 2023-11-14 16:57:29 -05:00
parent 6a1e05c270
commit 432878d2ae
5 changed files with 16 additions and 5 deletions

View File

@ -70,12 +70,17 @@ jobs:
path: legobin path: legobin
key: legobin key: legobin
- name: Build isledecomp library
shell: bash
run: |
pip install tools/isledecomp
- name: Summarize Accuracy - name: Summarize Accuracy
shell: bash shell: bash
run: | run: |
pip install -r tools/reccmp/requirements.txt pip install -r tools/reccmp/requirements.txt
python3 tools/reccmp/reccmp.py -S ISLEPROGRESS.SVG --svg-icon tools/reccmp/isle.png -H ISLEPROGRESS.HTML legobin/ISLE.EXE build/ISLE.EXE build/ISLE.PDB . | tee ISLEPROGRESS.TXT python3 tools/reccmp/reccmp.py -S ISLEPROGRESS.SVG --svg-icon tools/reccmp/isle.png -H ISLEPROGRESS.HTML legobin/ISLE.EXE build/ISLE.EXE build/ISLE.PDB ISLE | tee ISLEPROGRESS.TXT
python3 tools/reccmp/reccmp.py -S LEGO1PROGRESS.SVG -T 1929 --svg-icon tools/reccmp/lego1.png -H LEGO1PROGRESS.HTML legobin/LEGO1.DLL build/LEGO1.DLL build/LEGO1.PDB . | tee LEGO1PROGRESS.TXT python3 tools/reccmp/reccmp.py -S LEGO1PROGRESS.SVG -T 1929 --svg-icon tools/reccmp/lego1.png -H LEGO1PROGRESS.HTML legobin/LEGO1.DLL build/LEGO1.DLL build/LEGO1.PDB LEGO1 | tee LEGO1PROGRESS.TXT
- name: Compare Accuracy With Current Master - name: Compare Accuracy With Current Master
shell: bash shell: bash

View File

@ -1 +1 @@
-e ../isledecomp/ isledecomp

View File

@ -4,6 +4,7 @@
from enum import Enum from enum import Enum
from .util import ( from .util import (
CodeBlock, CodeBlock,
OffsetMatch,
is_blank_or_comment, is_blank_or_comment,
match_offset_comment, match_offset_comment,
is_exact_offset_comment, is_exact_offset_comment,
@ -30,7 +31,10 @@ def find_code_blocks(stream: TextIO) -> List[CodeBlock]:
blocks = [] blocks = []
offset_match = None offset_match = OffsetMatch(module=None,
address=None,
is_template=None,
is_stub=None)
offset_comment = None offset_comment = None
function_sig = None function_sig = None
start_line = None start_line = None

View File

@ -1,4 +1,5 @@
# C++ Parser utility functions and data structures # C++ Parser utility functions and data structures
from __future__ import annotations # python <3.10 compatibility
import re import re
from collections import namedtuple from collections import namedtuple

View File

@ -1,2 +1,3 @@
colorama colorama
capstone capstone
isledecomp