diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..ba67a3a8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: build + +on: + # TODO: change to "release" + push: + # TODO: change to `master + branches: [ fix-178 ] + +jobs: + pyinstaller-linux: + runs-on: ubuntu-16.04 + steps: + - name: Checkout capa + uses: actions/checkout@v2 + - name: Set up Python 2.7 + uses: actions/setup-python@v2 + with: + python-version: 2.7 + - name: Install PyInstaller + run: pip install pyinstaller + - name: Install capa + run: pip install -e . + - name: Build standalone executable + run: pyinstaller .github/pyinstaller/pyinstaller.spec + - name: Does it run? + run: dist/capa --help diff --git a/setup.py b/setup.py index 5219b91d..d242ca8a 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ import sys import setuptools -requirements = ["six", "tqdm", "pyyaml", "tabulate", "colorama", "termcolor", "ruamel.yaml"] +requirements = ["six", "tqdm", "pyyaml", "tabulate", "colorama", "termcolor", "ruamel.yaml", "wcwidth"] if sys.version_info >= (3, 0): # py3