mirror of
https://github.com/mandiant/capa.git
synced 2026-01-14 13:56:49 -08:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: build
|
|
|
|
on:
|
|
# TODO: change to "release"
|
|
push:
|
|
# TODO: change to `master
|
|
branches: [ fix-178 ]
|
|
|
|
jobs:
|
|
build:
|
|
name: PyInstaller for ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-16.04
|
|
artifact_name: capa
|
|
asset_name: capa-linux
|
|
- os: windows-latest
|
|
artifact_name: capa.exe
|
|
asset_name: capa-windows
|
|
- os: macos-latest
|
|
artifact_name: capa
|
|
asset_name: capa-macos
|
|
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
|