From d31d223f8c5c8ceeb797e0226543ce1367e611ff Mon Sep 17 00:00:00 2001 From: Ruihang Lai Date: Sun, 17 Nov 2024 15:10:20 -0500 Subject: [PATCH] test windows --- .github/workflows/wheel_windows.yaml | 163 ++++++++++++++------------- 1 file changed, 83 insertions(+), 80 deletions(-) diff --git a/.github/workflows/wheel_windows.yaml b/.github/workflows/wheel_windows.yaml index 714fcb7..cab7038 100644 --- a/.github/workflows/wheel_windows.yaml +++ b/.github/workflows/wheel_windows.yaml @@ -19,87 +19,90 @@ jobs: shell: 'cmd /C call {0}' steps: - - name: Git config + - name: Check MSVC run: >- - git config --system core.longpaths true - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Checkout source - run: | - git clone https://github.com/mlc-ai/package package --recursive - - name: Setup script env - run: | - mv scripts/build-environment.yaml package/3rdparty/tlcpack/conda/build-environment.yaml - rm -rf conda - ln -s package/3rdparty/tlcpack/conda conda - - name: Sync XGrammar Package - run: | - python scripts/sync_package.py --package . --package-name xgrammar --version ${{ github.ref_name }} - # Use conda for LLVM dep - - uses: conda-incubator/setup-miniconda@v3 - with: - activate-environment: xgrammar-build - channel-priority: strict - environment-file: conda/build-environment.yaml - auto-activate-base: false - - name: Conda info - run: | - conda info - conda list - python --version - - name: Build@Win - run: >- - scripts/build_xgrammar_lib_win.bat - # Build wheel for different python versions - - name: Setup@Py39 - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: build-Py39 - python-version: 3.9 - auto-activate-base: false - - name: Wheel-Build@Py39 - run: | - python --version - python -m pip install setuptools Cython wheel - cd python - python setup.py bdist_wheel - - name: Setup@Py310 - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: build-Py310 - python-version: '3.10' - auto-activate-base: false - - name: Wheel-Build@Py310 - run: | - python --version - python -m pip install setuptools Cython wheel - cd python - python setup.py bdist_wheel - - name: Setup@Py311 - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: build-Py311 - python-version: '3.11' - auto-activate-base: false - - name: Wheel-Build@Py311 - run: | - python --version - python -m pip install setuptools Cython wheel - cd python - python setup.py bdist_wheel - - name: Setup@Py312 - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: build-Py312 - python-version: '3.12' - auto-activate-base: false - - name: Wheel-Build@Py312 - run: | - python --version - python -m pip install setuptools Cython wheel - cd python - python setup.py bdist_wheel + dir C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\ + # - name: Git config + # run: >- + # git config --system core.longpaths true + # - uses: actions/checkout@v3 + # with: + # submodules: 'recursive' + # - name: Checkout source + # run: | + # git clone https://github.com/mlc-ai/package package --recursive + # - name: Setup script env + # run: | + # mv scripts/build-environment.yaml package/3rdparty/tlcpack/conda/build-environment.yaml + # rm -rf conda + # ln -s package/3rdparty/tlcpack/conda conda + # - name: Sync XGrammar Package + # run: | + # python scripts/sync_package.py --package . --package-name xgrammar --version ${{ github.ref_name }} + # # Use conda for LLVM dep + # - uses: conda-incubator/setup-miniconda@v3 + # with: + # activate-environment: xgrammar-build + # channel-priority: strict + # environment-file: conda/build-environment.yaml + # auto-activate-base: false + # - name: Conda info + # run: | + # conda info + # conda list + # python --version + # - name: Build@Win + # run: >- + # scripts/build_xgrammar_lib_win.bat + # # Build wheel for different python versions + # - name: Setup@Py39 + # uses: conda-incubator/setup-miniconda@v2 + # with: + # activate-environment: build-Py39 + # python-version: 3.9 + # auto-activate-base: false + # - name: Wheel-Build@Py39 + # run: | + # python --version + # python -m pip install setuptools Cython wheel + # cd python + # python setup.py bdist_wheel + # - name: Setup@Py310 + # uses: conda-incubator/setup-miniconda@v2 + # with: + # activate-environment: build-Py310 + # python-version: '3.10' + # auto-activate-base: false + # - name: Wheel-Build@Py310 + # run: | + # python --version + # python -m pip install setuptools Cython wheel + # cd python + # python setup.py bdist_wheel + # - name: Setup@Py311 + # uses: conda-incubator/setup-miniconda@v2 + # with: + # activate-environment: build-Py311 + # python-version: '3.11' + # auto-activate-base: false + # - name: Wheel-Build@Py311 + # run: | + # python --version + # python -m pip install setuptools Cython wheel + # cd python + # python setup.py bdist_wheel + # - name: Setup@Py312 + # uses: conda-incubator/setup-miniconda@v2 + # with: + # activate-environment: build-Py312 + # python-version: '3.12' + # auto-activate-base: false + # - name: Wheel-Build@Py312 + # run: | + # python --version + # python -m pip install setuptools Cython wheel + # cd python + # python setup.py bdist_wheel # - name: Publish package distributions to PyPI # uses: pypa/gh-action-pypi-publish@release/v1 # with: