From 92673be42c761051561c3894050b6a0fb06c17f1 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 6 May 2025 22:15:38 +0100 Subject: [PATCH 1/2] Reformat and install volatility package deps before build --- .github/workflows/build-pyinstaller.yml | 60 ++++++++++++------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build-pyinstaller.yml b/.github/workflows/build-pyinstaller.yml index bcba95403..21c2d8acf 100644 --- a/.github/workflows/build-pyinstaller.yml +++ b/.github/workflows/build-pyinstaller.yml @@ -4,47 +4,47 @@ on: branches: - stable - develop - - 'release/**' + - "release/**" pull_request: branches: - stable - - 'release/**' + - "release/**" jobs: - exe: runs-on: windows-latest strategy: matrix: python-version: ["3.11"] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyinstaller - - - name: Pyinstall executable - run: | - pyinstaller --clean -y vol.spec - pyinstaller --clean -y volshell.spec + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + pip install -e .[full,cloud] - - name: Move files - run: | - mv dist/vol.exe vol.exe - mv dist/volshell.exe volshell.exe + - name: Pyinstall executable + run: | + pyinstaller --clean -y vol.spec + pyinstaller --clean -y volshell.spec - - name: Archive - uses: actions/upload-artifact@v4 - with: - name: volatility3-pyinstaller - path: | - vol.exe - volshell.exe - README.md - LICENSE.txt + - name: Move files + run: | + mv dist/vol.exe vol.exe + mv dist/volshell.exe volshell.exe + + - name: Archive + uses: actions/upload-artifact@v4 + with: + name: volatility3-pyinstaller + path: | + vol.exe + volshell.exe + README.md + LICENSE.txt From ee445d974692f3061dd6cb7eaae7c653381c740f Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 6 May 2025 22:27:03 +0100 Subject: [PATCH 2/2] Add in workflow_dispatch for pyinstaller action --- .github/workflows/build-pyinstaller.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-pyinstaller.yml b/.github/workflows/build-pyinstaller.yml index 21c2d8acf..b1d15eb10 100644 --- a/.github/workflows/build-pyinstaller.yml +++ b/.github/workflows/build-pyinstaller.yml @@ -9,6 +9,7 @@ on: branches: - stable - "release/**" + workflow_dispatch: jobs: exe: