From 460114c4f21e4c79671be214f73dbfc039bd4654 Mon Sep 17 00:00:00 2001 From: techtanic Date: Thu, 4 Jul 2024 00:29:27 +0530 Subject: [PATCH] chore: Update build workflow to support both GUI and CLI builds on Windows --- .github/workflows/build.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d291ac8..6cb815c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,11 +27,9 @@ jobs: python-version: "3.11" cache: "pip" - - name: Install dependencies - run: | - pip install -r requirements.txt -U - pip install pyinstaller -U - + - name: Install dependencies and PyInstaller + run: pip install -r requirements.txt pyinstaller -U + - name: Build ${{ matrix.name }} run: pyinstaller -y -F ${{ matrix.mode }} -i "${{ matrix.icon }}" --clean --name "${{ matrix.name }}" --add-data "base.py;." --add-data "colors.py;." --add-data "README.md;." --add-data "LICENSE;." "${{ matrix.name == 'DUCE-GUI-windows' && 'gui.py' || 'cli.py' }}" @@ -40,21 +38,4 @@ jobs: with: name: ${{ matrix.name }}.exe path: ./dist/${{ matrix.name }}.exe - - - name: List dist directory - run: dir ./dist - - upload: - needs: build - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - - name: Upload DUCE - uses: actions/upload-artifact@v4 - with: - name: DUCE-windows - path: ./dist/ - - - name: List dist directory - run: dir ./dist - \ No newline at end of file + \ No newline at end of file