7777 path : output_Maya${{ matrix.maya }}/*.${{ steps.get-devkit.outputs.plugin-ext }}
7878 if-no-files-found : error
7979
80-
8180 compile_python :
8281 strategy :
8382 matrix :
@@ -91,16 +90,38 @@ jobs:
9190 steps :
9291 - uses : actions/checkout@v4
9392 - run : git fetch --force --tags origin
93+ - name : ' Get Previous tag'
94+ id : previoustag
95+ uses : " WyriHaximus/github-action-get-previous-tag@v1"
96+ with :
97+ fallback : v0.0.1
9498
9599 - name : Get pyver macos-latest
96100 if : ${{ matrix.os == 'macos-latest' }}
97101 shell : bash
98- run : echo "PY_VER=3.9" >> $GITHUB_ENV
102+ run : |
103+ echo "PY_VER=3.9" >> $GITHUB_ENV
104+ echo "PY_VER_FLAT=39" >> $GITHUB_ENV
105+ echo "PY_EXT=so" >> $GITHUB_ENV
106+ echo "PLAT_TAG=macosx_12_0_arm64" >> $GITHUB_ENV
107+
108+ - name : Get pyver ubuntu-latest
109+ if : ${{ matrix.os == 'ubuntu-latest' }}
110+ shell : bash
111+ run : |
112+ echo "PY_VER=3.7" >> $GITHUB_ENV
113+ echo "PY_VER_FLAT=37" >> $GITHUB_ENV
114+ echo "PY_EXT=so" >> $GITHUB_ENV
115+ echo "PLAT_TAG=manylinux_2_17_x86_64" >> $GITHUB_ENV
99116
100- - name : Get pyver
101- if : ${{ matrix.os != 'macos -latest' }}
117+ - name : Get pyver windows-latest
118+ if : ${{ matrix.os == 'windows -latest' }}
102119 shell : bash
103- run : echo "PY_VER=3.7" >> $GITHUB_ENV
120+ run : |
121+ echo "PY_VER=3.7" >> $GITHUB_ENV
122+ echo "PY_VER_FLAT=37" >> $GITHUB_ENV
123+ echo "PY_EXT=pyd" >> $GITHUB_ENV
124+ echo "PLAT_TAG=win_amd64" >> $GITHUB_ENV
104125
105126 - name : Get an older python version
106127 uses : actions/setup-python@v5
@@ -117,11 +138,30 @@ jobs:
117138 --backend ninja
118139 install-args : --skip-subprojects
119140
141+ - name : Build Wheel
142+ shell : bash
143+ run : |
144+ python -m pip install -U pip
145+ python -m pip install -U build wheel hatch
146+ python -m hatch version ${{ steps.previoustag.outputs.tag }}
147+ python -m build --wheel
148+ for PY_WHEEL in dist/*.whl
149+ do
150+ python -m wheel tags --remove --python-tag ${{ env.PY_VER_FLAT }} --abi-tag abi3 --platform-tag ${{ env.PLAT_TAG }} ${PY_WHEEL}
151+ done
152+
120153 - name : Upload Artifacts
121154 uses : actions/upload-artifact@v4
122155 with :
123156 name : ${{ runner.os }}-pyModule
124- path : output_Python/*.*
157+ path : output_Python/*.${{ env.PY_EXT }}
158+ if-no-files-found : error
159+
160+ - name : Upload Artifacts
161+ uses : actions/upload-artifact@v4
162+ with :
163+ name : ${{ runner.os }}-wheels
164+ path : dist/*.whl
125165 if-no-files-found : error
126166
127167 upload_release :
@@ -135,15 +175,15 @@ jobs:
135175 id : previoustag
136176 uses : " WyriHaximus/github-action-get-previous-tag@v1"
137177 with :
138- fallback : 0 .0.1
178+ fallback : v0 .0.1
139179
140180 - name : Package
141181 uses : blurstudio/mayaModuleActions/packageMayaModule@v1
142182 with :
143183 module-name : simplex
144184 folder-list : scripts icons
145185 version : ${{ steps.previoustag.outputs.tag }}
146- python -limited-api : true
186+ py -limited-api : true
147187
148188 - name : Upload distribution
149189 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
0 commit comments