diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 62d8ae56b..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: build - -on: - release: - types: [edited, published] - -jobs: - build: - name: PyInstaller for ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - include: - - os: ubuntu-16.04 - # use old linux so that the shared library versioning is more portable - artifact_name: capa - asset_name: linux - - os: windows-latest - artifact_name: capa.exe - asset_name: windows - - os: macos-latest - artifact_name: capa - asset_name: macos - steps: - - name: Checkout capa - uses: actions/checkout@v2 - with: - submodules: true - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - if: matrix.os == 'ubuntu-latest' - run: sudo apt-get install -y libyaml-dev - - name: Install PyInstaller - run: pip install 'pyinstaller==4.2' - - name: Install capa - run: pip install -e . - - name: Build standalone executable - run: pyinstaller .github/pyinstaller/pyinstaller.spec - - name: Does it run? - run: dist/capa "tests/data/Practical Malware Analysis Lab 01-01.dll_" - - uses: actions/upload-artifact@v2 - with: - name: ${{ matrix.asset_name }} - path: dist/${{ matrix.artifact_name }} - - zip: - name: zip ${{ matrix.asset_name }} - runs-on: ubuntu-latest - needs: build - strategy: - matrix: - include: - - asset_name: linux - artifact_name: capa - - asset_name: windows - artifact_name: capa.exe - - asset_name: macos - artifact_name: capa - steps: - - name: Download ${{ matrix.asset_name }} - uses: actions/download-artifact@v2 - with: - name: ${{ matrix.asset_name }} - - name: Set executable flag - run: chmod +x ${{ matrix.artifact_name }} - - name: Set zip name - run: echo "zip_name=capa-${GITHUB_REF#refs/tags/}-${{ matrix.asset_name }}.zip" >> $GITHUB_ENV - - name: Zip ${{ matrix.artifact_name }} into ${{ env.zip_name }} - run: zip ${{ env.zip_name }} ${{ matrix.artifact_name }} - - name: Upload ${{ env.zip_name }} to GH Release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN}} - file: ${{ env.zip_name }} - tag: ${{ github.ref }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 2258de3b4..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: publish to pypi - -on: - release: - types: [published] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '2.7' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload --skip-existing dist/* \ No newline at end of file