diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8d5c706dd..d312f44a7 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -32,29 +32,29 @@ jobs: - name: Upload Wheel packages (Python 3.8) uses: actions/upload-artifact@v3 with: - name: triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_28_x86_64.whl - path: wheelhouse/manylinux_2_28_x86_64/triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_28_x86_64.whl + name: triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_31_x86_64.whl + path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp38-cp38-manylinux_2_31_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.9) uses: actions/upload-artifact@v3 with: - name: triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_28_x86_64.whl - path: wheelhouse/manylinux_2_28_x86_64/triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_28_x86_64.whl + name: triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_31_x86_64.whl + path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp39-cp39-manylinux_2_31_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.10) uses: actions/upload-artifact@v3 with: - name: triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_28_x86_64.whl - path: wheelhouse/manylinux_2_28_x86_64/triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_28_x86_64.whl + name: triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_31_x86_64.whl + path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp310-cp310-manylinux_2_31_x86_64.whl if-no-files-found: warn - name: Upload Wheel packages (Python 3.11) uses: actions/upload-artifact@v3 with: - name: triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_28_x86_64.whl - path: wheelhouse/manylinux_2_28_x86_64/triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_28_x86_64.whl + name: triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_31_x86_64.whl + path: wheelhouse/manylinux_2_31_x86_64/triton_library-${{ env.package-version }}-cp311-cp311-manylinux_2_31_x86_64.whl if-no-files-found: warn @@ -114,22 +114,27 @@ jobs: shell: powershell - name: Build Triton Python package - run: python -m build --wheel + run: python -m build --wheel --outdir wheelhouse/windows_x86_64_tmp env: PYTHON_VERSION: ${{ matrix.python-version }} PYTHON_INCLUDE_DIRS: ${{ env.pythonLocation }}\include - PYTHON_LIBRARIES: ${{ env.pythonLocation }}\libs\${{ matrix.pylib }} PYTHON_LIBRARY: ${{ env.pythonLocation }}\libs\${{ matrix.pylib }} Z3_INCLUDE_DIRS: ${{ github.workspace }}\z3-4.12.2-x64-win\include Z3_LIBRARIES: ${{ github.workspace }}\z3-4.12.2-x64-win\bin\libz3.lib CAPSTONE_INCLUDE_DIRS: ${{ github.workspace }}\capstone-4.0.2-win64\include CAPSTONE_LIBRARIES: ${{ github.workspace }}\capstone-4.0.2-win64\capstone.lib + - name: Repair wheel package + run: | + python -m pip install delvewheel + + delvewheel repair --add-path ${{ github.workspace }}\z3-4.12.2-x64-win\bin; --wheel-dir .\wheelhouse\windows_x86_64 -v .\wheelhouse\windows_x86_64_tmp\triton_library-${{ env.package-version }}-${{ matrix.pycp }}-win_amd64.whl + - name: Upload uses: actions/upload-artifact@v3 with: name: triton_library-${{ env.package-version }}-${{ matrix.pycp }}-win_amd64.whl - path: ${{ github.workspace }}/dist/triton_library-${{ env.package-version }}-${{ matrix.pycp }}-win_amd64.whl + path: ${{ github.workspace }}\wheelhouse\windows_x86_64\triton_library-${{ env.package-version }}-${{ matrix.pycp }}-win_amd64.whl if-no-files-found: warn