Skip to content

Commit

Permalink
chore: Update build workflow to support both GUI and CLI builds on Wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
techtanic committed Jul 3, 2024
1 parent c9c2ebc commit 460114c
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}"

Expand All @@ -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


0 comments on commit 460114c

Please sign in to comment.