Skip to content

Commit

Permalink
Merge branch 'nikteliy-fix_build'
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed May 3, 2024
2 parents 922922f + 8035ef7 commit c2b1c46
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/build_scripts/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
20 changes: 10 additions & 10 deletions .github/workflows/build-and-test-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*/*.whl
name: wheels-${{ runner.os }}
path: wheelhouse/${{ runner.os }}/*.whl

windows-build:
name: Build wheel for windows AMD64
Expand All @@ -44,15 +44,15 @@ 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
path: wheelhouse/*/*.whl
name: wheels-${{ runner.os }}
path: wheelhouse/${{ runner.os }}/*.whl

osx-build:
name: Build wheel for osx AMD64
Expand All @@ -78,16 +78,16 @@ 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 }}/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*/*.whl
name: wheels-${{ runner.os }}
path: wheelhouse/${{ runner.os }}/*.whl


test-wheels-86_64:
Expand Down Expand Up @@ -116,11 +116,11 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: wheels
name: wheels-${{ runner.os }}
path: wheelhouse

- name: Install python-snap7
run: python3 -m pip install $(ls wheelhouse/${{ runner.os }}/*.whl)
run: python3 -m pip install $(ls wheelhouse/*.whl)

- name: Run pytest
run: |
Expand Down

0 comments on commit c2b1c46

Please sign in to comment.