Skip to content

Commit 6154eeb

Browse files
Update build.yml
1 parent 9a6064f commit 6154eeb

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ jobs:
672672
- name: install libs
673673
run: |
674674
apt update
675-
apt -y install libdrm-dev libgbm-dev libegl-dev libgles2-mesa-dev libasound2-dev
675+
apt -y install libdrm-dev libgbm-dev libegl-dev libgles2-mesa-dev libasound2-dev libedit2
676676
677677
- uses: actions/checkout@v2
678678
with:
@@ -709,30 +709,11 @@ jobs:
709709
python3 -m pip install --upgrade build
710710
python3 -m build --wheel
711711
python3 -m pip install twine
712-
python3 -m pip install --upgrade auditwheel
713-
python3 -m pip install --upgrade patchelf
714-
python3 -m auditwheel repair dist/*.whl
715712
716-
- name: Rename wheel for testing
717-
run: |
718-
for wheel in wheelhouse/raylib*.whl; do
719-
if [ -f "$wheel" ]; then
720-
basename=$(basename "$wheel")
721-
if [[ $basename =~ ^([^-]+)-([^-]+.*)-[^-]+-[^-]+-[^-]+\.whl$ ]]; then
722-
package="${BASH_REMATCH[1]}"
723-
version="${BASH_REMATCH[2]}"
724-
new_name="${package}-${version}-py3-none-linux_aarch64.whl"
725-
echo "Renaming: $basename -> $new_name"
726-
cp "$wheel" "wheelhouse/$new_name"
727-
fi
728-
fi
729-
done
730-
shell: bash
731713
732714
- name: Test
733715
run: |
734-
python3 -m pip install --no-deps wheelhouse/*-py3-none-linux_aarch64.whl
735-
rm -f wheelhouse/*-py3-none-linux_aarch64.whl
716+
python3 -m pip install --no-deps dist/*.whl
736717
cd /
737718
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
738719
cat /tmp/output
@@ -746,13 +727,13 @@ jobs:
746727
- name: Publish to PyPI
747728
if: ${{ inputs.publish_to_pypi == true }}
748729
run: |
749-
python3 -m twine upload -u __token__ -p ${{ secrets.PYPI_KEY }} wheelhouse/*.whl
730+
python3 -m twine upload -u __token__ -p ${{ secrets.PYPI_KEY }} dist/*.whl
750731
751732
- name: Upload build Artifact wheel
752733
uses: actions/upload-artifact@v4
753734
with:
754735
name: wheel-linux-arm64-DRM-${{ matrix.python-version }}
755-
path: wheelhouse/*
736+
path: dist/*
756737

757738
build-windows:
758739
# The type of runner that the job will run on

0 commit comments

Comments
 (0)