Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 37 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
pipx run delvewheel repair -w {dest_dir} {wheel} &&
pipx run abi3audit --strict --report {wheel}
MLC_CIBW_VERSION: "2.22.0"
MLC_PYTHON_VERSION: "3.9"
MLC_CIBW_PY_VERSION: "3.11"
MLC_CIBW_WIN_BUILD: "cp39-win_amd64"
MLC_CIBW_MAC_BUILD: "cp39-macosx_arm64"
MLC_CIBW_LINUX_BUILD: "cp313-manylinux_x86_64"
Expand All @@ -26,9 +26,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.MLC_PYTHON_VERSION }}
- uses: pre-commit/[email protected]
- uses: ytanikin/[email protected]
if: github.event_name == 'pull_request'
Expand All @@ -43,18 +40,23 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v5
with:
python-version: ${{ env.MLC_PYTHON_VERSION }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel=="${{ env.MLC_CIBW_VERSION }}"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: |
uv run --no-project `
--with cibuildwheel==${{ env.MLC_CIBW_VERSION }} `
cibuildwheel --output-dir wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
CIBW_BEFORE_ALL: ".\\scripts\\cpp_tests.bat"
CIBW_BUILD: ${{ env.MLC_CIBW_WIN_BUILD }}
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
run: |
uv run --no-project `
python scripts/show_wheel_content.py wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
macos:
name: MacOS
runs-on: macos-latest
Expand All @@ -63,18 +65,23 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v5
with:
python-version: ${{ env.MLC_PYTHON_VERSION }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: |
uv run --no-project \
--with cibuildwheel==${{ env.MLC_CIBW_VERSION }} \
cibuildwheel --output-dir wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
CIBW_BEFORE_ALL: "./scripts/cpp_tests.sh"
CIBW_BUILD: ${{ env.MLC_CIBW_MAC_BUILD }}
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
run: |
uv run --no-project \
python scripts/show_wheel_content.py wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
linux:
name: Linux
runs-on: ubuntu-latest
Expand All @@ -83,15 +90,20 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v5
with:
python-version: ${{ env.MLC_PYTHON_VERSION }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: |
uv run --no-project \
--with cibuildwheel==${{ env.MLC_CIBW_VERSION }} \
cibuildwheel --output-dir wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
CIBW_BEFORE_ALL: "./scripts/setup_manylinux2014.sh && ./scripts/cpp_tests.sh"
CIBW_BUILD: ${{ env.MLC_CIBW_LINUX_BUILD }}
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
run: |
uv run --no-project \
python scripts/show_wheel_content.py wheelhouse
env:
UV_PYTHON: ${{ env.MLC_CIBW_PY_VERSION }}
Loading