diff --git a/.github/build_scripts/build_package.sh b/.github/build_scripts/build_package.sh index 05b19745..ffc7597e 100755 --- a/.github/build_scripts/build_package.sh +++ b/.github/build_scripts/build_package.sh @@ -7,6 +7,6 @@ popd mkdir -p snap7/lib/ cp /usr/lib/libsnap7.so snap7/lib/ ${INPUT_PYTHON} -m pip install --upgrade pip wheel build auditwheel patchelf setuptools -${INPUT_PYTHON} -m build . --wheel -C="--plat-name=${INPUT_PLATFORM}" +${INPUT_PYTHON} -m build . --wheel -C="--build-option=--plat-name=${INPUT_PLATFORM}" auditwheel repair dist/*.whl --plat ${INPUT_PLATFORM} -w ${INPUT_WHEELDIR} diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e4212115..9f380fa2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -27,7 +27,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-{{ runner.os }} path: wheelhouse/*/*.whl windows-build: @@ -44,14 +44,14 @@ jobs: run: | mkdir -p snap7/lib/ Copy-Item .\snap7-full-1.4.2\release\Windows\Win64\snap7.dll .\snap7\lib - python3 -m build . --wheel -C="--plat-name=win_amd64" + python3 -m build . --wheel -C="--build-option=--plat-name=win_amd64" mkdir -p wheelhouse/${{ runner.os }}/ cp dist/*.whl wheelhouse/${{ runner.os }}/ - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-{{ runner.os }} path: wheelhouse/*/*.whl osx-build: @@ -78,7 +78,7 @@ jobs: - name: Build wheel run: | - python3 -m build . --wheel -C="--plat-name=macosx_10_9_universal2" + python3 -m build . --wheel -C="--build-option=--plat-name=macosx_10_9_universal2" mkdir -p wheelhouse/${{ runner.os }}/ cp dist/*.whl wheelhouse/${{ runner.os }}/ @@ -86,7 +86,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-{{ runner.os }} path: wheelhouse/*/*.whl