Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
workflow_call:

env:
python_version: "3.9"

defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
Expand All @@ -17,12 +14,16 @@ jobs:
verify-apps:
name: Build apps
strategy:
fail-fast: false
matrix:
os_name: ["windows"]
framework: ["toga", "pyside2", "pyside6", "ppb"]
python_version: ["3.8", "3.9", "3.10"]
# PySide2 and PySide6 produce very long paths that can't be packaged
# by WiX. Disable these targets until the problem has been fixed.
# See beeware/briefcase#948
# framework: ["toga", "pyside2", "pyside6", "ppb"]
framework: ["toga", "ppb"]
include:
- os_name: windows
platform: windows-latest
- platform: ["windows-latest"]
briefcase-data-dir: ~\AppData\Local\BeeWare\briefcase\Cache
pip-cache-dir: ~\AppData\Local\pip\Cache
docker-cache-dir: C:\ProgramData\DockerDesktop
Expand All @@ -31,7 +32,7 @@ jobs:
- name: Cache Briefcase tools
uses: actions/cache@v3.0.11
with:
key: briefcase-${{ matrix.platform }}
key: briefcase-${{ matrix.platform }}-${{ matrix.python-version }}
path: |
~/.cookiecutters
${{ matrix.briefcase-data-dir }}
Expand All @@ -43,12 +44,18 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ env.python_version }}
python-version: ${{ matrix.python_version }}
- name: Install packages
run: pip install briefcase
- name: Build Visual Studio project
run: |
cd tests/apps/verify-${{ matrix.framework }}
briefcase create ${{ matrix.os_name }} VisualStudio
briefcase build ${{ matrix.os_name }} VisualStudio
briefcase package ${{ matrix.os_name }} VisualStudio --adhoc-sign
briefcase create windows VisualStudio
briefcase build windows VisualStudio
briefcase package windows VisualStudio --adhoc-sign
- uses: actions/upload-artifact@v3
name: Upload failure
if: failure()
with:
name: build-failure-logs-${{ matrix.framework }}-${{ matrix.python_version }}
path: tests/apps/verify-${{ matrix.framework }}/logs/*
9 changes: 9 additions & 0 deletions tests/apps/verify-ppb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ license = "BSD license"
author = 'Brutus'
author_email = "contact@beeware.org"

[tool.briefcase.app.verify-ppb]
formal_name = "Hello PPB"
description = "A PPB test app"
icon = "src/verify_ppb/resources/verify-ppb"
sources = ['src/verify_ppb']
requires = [
'ppb~=1.1',
]

[tool.briefcase.app.verify-ppb.windows]
requires = []
template = '../../../'
10 changes: 10 additions & 0 deletions tests/apps/verify-pyside6/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ license = "BSD license"
author = 'Brutus'
author_email = "contact@beeware.org"

[tool.briefcase.app.verify-pyside6]
formal_name = "Hello PySide6"
description = "A PySide6 test app"
icon = "src/verify_pyside6/resources/verify-pyside6"
sources = ['src/verify_pyside6']
requires = [
'pyside6>=6.2.4',
]


[tool.briefcase.app.verify-pyside6.windows]
requires = []
template = '../../../'