-
Notifications
You must be signed in to change notification settings - Fork 21
165 lines (158 loc) · 6.39 KB
/
cd.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: CD
on:
release:
types: [published]
workflow_dispatch:
pull_request:
paths:
- .github/workflows/cd.yml # This is to make sure changes to the CD workflow are tested before deployment.
jobs:
# python-packaging:
# name: 🐍 Packaging
# uses: cda-tum/mqt-workflows/.github/workflows/[email protected]
experimental-free-threading-1:
name: 🧵 Free Threading - build[uv] - MSVC
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: Install Python 3.13t from nuget
run: |
nuget.exe install python-freethreaded -Version 3.13.0-rc1 -FallbackSource https://api.nuget.org/v3/index.json -OutputDirectory 'C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython'
- name: Setup venv
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv venv
- name: Build the project
run: |
venv\Scripts\python.exe -m pip install build[uv]
venv\Scripts\python.exe -m build --wheel --installer=uv
experimental-free-threading-2:
name: 🧵 Free Threading - build[uv] - ClangCL
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: Install Python 3.13t from nuget
run: |
nuget.exe install python-freethreaded -Version 3.13.0-rc1 -FallbackSource https://api.nuget.org/v3/index.json -OutputDirectory 'C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython'
- name: Setup venv
run: |
C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe -m venv venv
- name: Build the project
env:
CMAKE_ARGS: "-T ClangCL"
run: |
venv\Scripts\python.exe -m pip install build[uv]
venv\Scripts\python.exe -m build --wheel --installer=uv
experimental-free-threading-3:
name: 🧵 Free Threading - uv - ClangCL
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: Install Python 3.13t from nuget
run: |
nuget.exe install python-freethreaded -Version 3.13.0-rc1 -FallbackSource https://api.nuget.org/v3/index.json -OutputDirectory 'C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython'
- name: Setup uv venv
run: uv.exe venv --python "C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe"
- name: Build the project
env:
CMAKE_ARGS: "-T ClangCL"
run: uv.exe pip install -v .
experimental-free-threading-4:
name: 🧵 Free Threading - uv - MSVC
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: Install Python 3.13t from nuget
run: |
nuget.exe install python-freethreaded -Version 3.13.0-rc1 -FallbackSource https://api.nuget.org/v3/index.json -OutputDirectory 'C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython'
- name: Reset uv venv
run: uv.exe venv --python "C:\Users\runneradmin\AppData\Local\test\Cache\nuget-cpython\python-freethreaded.3.13.0-rc1\tools\python.exe"
- name: Build the project
run: uv.exe pip install -v .
experimental-free-threading-5:
name: 🧵 Free Threading - cibuidlwheel[uv] - ClangCL
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: run cibuildwheel
run: pipx run cibuildwheel --only cp313t-win_amd64
experimental-free-threading-6:
name: 🧵 Free Threading - cibuidlwheel[uv] - MSVC
runs-on: windows-latest
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# set up MSVC development environment (Windows only)
- uses: ilammy/msvc-dev-cmd@v1
# set up uv for faster Python package management
- uses: yezz123/setup-uv@v4
- name: run cibuildwheel
run: pipx run cibuildwheel --only cp313t-win_amd64
env:
CMAKE_ARGS: ""
CMAKE_GENERATOR: "Ninja"
# deploy:
# if: github.event_name == 'release' && github.event.action == 'published'
# name: 🚀 Deploy to PyPI
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/mqt.qcec
# permissions:
# id-token: write
# attestations: write
# contents: read
# needs: [python-packaging]
# steps:
# - uses: actions/download-artifact@v4
# with:
# pattern: cibw-*
# path: dist
# merge-multiple: true
# - name: Generate artifact attestation for sdist and wheel(s)
# uses: actions/[email protected]
# with:
# subject-path: "dist/*"
# - uses: pypa/gh-action-pypi-publish@release/v1