File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 --outdir dist/
2121 outputs :
2222 version :
23- value : " ${{ jobs.build.outputs.version }}"
23+ value : " ${{ jobs.build-linux .outputs.version }}"
2424
2525jobs :
2626 build-source :
4343 path : dist/*
4444 retention-days : 5
4545
46- build :
47- name : Build Python Wheel
46+ build-linux :
47+ name : Build Python Wheel (Linux)
4848 strategy :
4949 matrix :
5050 host :
@@ -113,3 +113,31 @@ jobs:
113113 >>
114114 $GITHUB_OUTPUT
115115 id : version
116+
117+ build-windows :
118+ name : Build Python Wheel (Windows)
119+ runs-on : windows-latest
120+ steps :
121+ - uses : actions/checkout@master
122+
123+ - name : Set up Python
124+ uses : actions/setup-python@v4
125+ with :
126+ python-version : ' 3.10'
127+
128+ - name : Install Python Dependencies
129+ run : |
130+ pip install build wheel setuptools pkginfo
131+
132+ - name : Build Wheel
133+ run : |
134+ ${{ inputs.cmd }}
135+ shell : bash
136+
137+ - name : Python Build Artifact
138+ uses : actions/upload-artifact@v4
139+ if : always()
140+ with :
141+ name : Python Wheel Windows
142+ path : dist/*.whl
143+ retention-days : 5
Original file line number Diff line number Diff line change @@ -12,11 +12,16 @@ def plat_name():
1212 return f"manylinux_{ GLIBC_VERSION .replace ('.' , '_' )} _{ platform .machine ()} "
1313
1414
15- setup (
16- options = {
17- "bdist_wheel" : {
18- "plat_name" : f"{ plat_name ()} " ,
19- "python_tag" : "py3" ,
20- }
15+ options = {
16+ "bdist_wheel" : {
17+ "python_tag" : "py3" ,
2118 }
19+ }
20+
21+ if platform .system () == "Linux" :
22+ options ["bdist_wheel" ]["plat_name" ] = plat_name ()
23+
24+
25+ setup (
26+ options = options
2227)
You can’t perform that action at this time.
0 commit comments