Skip to content

Commit

Permalink
Constrain xkbcommon version
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket committed Aug 4, 2024
1 parent 1bc7298 commit ecf7baf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 50 deletions.
73 changes: 23 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Create artifact
run: tar czf ~/wayland.tar.gz -C ${HOME}/wayland/ .
- name: Upload built libraries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wayland
path: ~/wayland.tar.gz
Expand All @@ -169,7 +169,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Download wayland libraries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wayland
- name: Unpack wayland artifact
Expand Down Expand Up @@ -204,8 +204,10 @@ jobs:
ls dist/
auditwheel show dist/pywlroots-*.whl
auditwheel repair --plat manylinux_2_28_x86_64 -w output_wheels dist/pywlroots-*.whl
env:
PIP_CONSTRAINT: dist-build-constraints.txt
- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.python-version }}
path: output_wheels/*.whl
Expand All @@ -217,18 +219,20 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10"]
pypy-version: ["7.3"]
steps:
- name: Download wayland libraries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wayland
- name: Unpack wayland artifact
run: tar xf wayland.tar.gz -C /
- name: Set python version
run: |
ls /opt/python/
PYTHON_ROOT=$(find /opt/python -name pp${PYTHON_VERSION/./}-*_pp${PP_VERSION/./})
echo "${PYTHON_ROOT}"
echo "${PYTHON_ROOT}/bin" >> $GITHUB_PATH
shell: bash
env:
Expand Down Expand Up @@ -257,8 +261,10 @@ jobs:
ls dist/
auditwheel show dist/pywlroots-*.whl
auditwheel repair --plat manylinux_2_28_x86_64 -w output_wheels dist/pywlroots-*.whl
env:
PIP_CONSTRAINT: dist-build-constraints.txt
- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-pypy-${{ matrix.python-version }}
path: output_wheels/*.whl
Expand All @@ -275,7 +281,6 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.8"
- "pypy-3.9"
- "pypy-3.10"
steps:
Expand All @@ -285,11 +290,11 @@ jobs:
sudo apt-get install -y --no-install-recommends \
libxkbcommon-dev
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheels-${{ matrix.python-version }}
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install wheel
Expand All @@ -314,7 +319,7 @@ jobs:
python-version: "3.12"
steps:
- name: Download wayland libraries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v5
with:
name: wayland
- name: Unpack wayland artifact
Expand Down Expand Up @@ -346,8 +351,10 @@ jobs:
- name: Build source
run: |
python -m build --sdist
env:
PIP_CONSTRAINT: dist-build-constraints.txt
- name: Upload source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source
path: dist/*.tar.gz
Expand All @@ -356,48 +363,14 @@ jobs:
runs-on: ubuntu-latest
needs: [test-wheel, build-source]
steps:
- name: Download wheels CPython 3.8
uses: actions/download-artifact@v3
with:
name: wheels-3.8
path: dist/
- name: Download wheels CPython 3.9
uses: actions/download-artifact@v3
with:
name: wheels-3.9
path: dist/
- name: Download wheels CPython 3.10
uses: actions/download-artifact@v3
with:
name: wheels-3.10
path: dist/
- name: Download wheels CPython 3.11
uses: actions/download-artifact@v3
with:
name: wheels-3.11
path: dist/
- name: Download wheels CPython 3.12
uses: actions/download-artifact@v3
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels-3.12
pattern: wheels-*
path: dist/
- name: Download wheels PyPy 3.8
uses: actions/download-artifact@v3
with:
name: wheels-pypy-3.8
path: dist
- name: Download wheels PyPy 3.9
uses: actions/download-artifact@v3
with:
name: wheels-pypy-3.9
path: dist
- name: Download wheels PyPy 3.10
uses: actions/download-artifact@v3
with:
name: wheels-pypy-3.10
path: dist
merge-multiple: true
- name: Download source
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: source
path: dist/
Expand Down
1 change: 1 addition & 0 deletions dist-build-constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xkbcommon<1.5

0 comments on commit ecf7baf

Please sign in to comment.