mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Build isledecomp in GH actions, fix mypy complaint
This commit is contained in:
parent
6a1e05c270
commit
432878d2ae
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -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
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
-e ../isledecomp/
|
isledecomp
|
||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -1,2 +1,3 @@
|
|||||||
colorama
|
colorama
|
||||||
capstone
|
capstone
|
||||||
|
isledecomp
|
||||||
Loading…
Reference in New Issue
Block a user