-
-
Notifications
You must be signed in to change notification settings - Fork 20
73 lines (67 loc) · 2.26 KB
/
Copy pathci.yml
File metadata and controls
73 lines (67 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
pull_request:
push:
branches:
- main
workflow_call:
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
FORCE_COLOR: "1"
jobs:
pre-commit:
name: Pre-commit checks
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
with:
pre-commit-source: pre-commit
verify-min-os-version:
name: Verify min_os_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: |
target_windows_build=$(grep -oP 'target_windows_build = \K\d+' "{{ cookiecutter.format }}/briefcase.toml")
min_os_version=$(grep -oP '"min_os_version": "\K\d+(?=")' "cookiecutter.json")
if [ "$target_windows_build" -ne "$min_os_version" ]; then
echo "::error::$target_windows_build != $min_os_version"
exit 1
fi
verify-apps:
name: Build apps
needs: [pre-commit, verify-min-os-version]
uses: beeware/.github/.github/workflows/app-build-verify.yml@main
with:
python-version: ${{ matrix.python-version }}
runner-os: ${{ matrix.runs-on }}
framework: ${{ matrix.framework }}
target-platform: windows
target-format: VisualStudio
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
framework: [ "toga", "pyside6", "pygame", "console" ]
runs-on: ["windows-2022", "windows-11-arm"]
exclude:
# Github Actions doesn't provide Windows/ARM64 builds for Python 3.10
- python-version: "3.10"
runs-on: "windows-11-arm"
# Pygame hasn't published 3.14 wheels.
- python-version: "3.14"
framework: pygame
# Pygame hasn't published any Windows/ARM64 wheels.
- framework: pygame
runs-on: windows-11-arm
# Toga is waiting on a release of Python.net for 3.14
- python-version: "3.14"
framework: toga
# Toga tests won't run on Windows/ARM64 until
# https://github.com/actions/partner-runner-images/issues/174 is resolved
- framework: "toga"
runs-on: windows-11-arm