Merge pull request #1291 from mandiant/rules-cache

cache rule set across invocations of capa
This commit is contained in:
Willi Ballenthin
2023-01-25 17:52:34 +01:00
committed by GitHub
17 changed files with 474 additions and 115 deletions

View File

@@ -19,6 +19,7 @@ a = Analysis(
# i.e. ./.github/pyinstaller
("../../rules", "rules"),
("../../sigs", "sigs"),
("../../cache", "cache"),
# capa.render.default uses tabulate that depends on wcwidth.
# it seems wcwidth uses a json file `version.json`
# and this doesn't get picked up by pyinstaller automatically.

View File

@@ -42,6 +42,8 @@ jobs:
run: python -m pip install --upgrade pip setuptools
- name: Install capa with build requirements
run: pip install -e .[build]
- name: Cache the rule set
run: python ./scripts/cache-ruleset.py ./rules/ ./cache/
- name: Build standalone executable
run: pyinstaller --log-level DEBUG .github/pyinstaller/pyinstaller.spec
- name: Does it run (PE)?