50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# GH actions.
|
|
# We use it to cover windows builds
|
|
# Jenkins is still the primary CI
|
|
name: Windows CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
Windows:
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: 'cmd /C call {0}'
|
|
|
|
steps:
|
|
- name: Git config
|
|
run: >-
|
|
git config --system core.longpaths true
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
- uses: conda-incubator/setup-miniconda@v3
|
|
with:
|
|
activate-environment: mlc-llm-build
|
|
channel-priority: strict
|
|
environment-file: ci/build-environment.yaml
|
|
auto-activate-base: false
|
|
- name: Conda info
|
|
run: |
|
|
conda info
|
|
conda list
|
|
python --version
|
|
# The wheel is built with scikit-build-core, which uses the Ninja
|
|
# generator on Windows. Ninja needs cl.exe on PATH, so activate the MSVC
|
|
# developer environment before building (otherwise CMake aborts with
|
|
# "CMAKE_C_COMPILER not set, after EnableLanguage").
|
|
- name: Set up MSVC developer environment
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
with:
|
|
arch: x64
|
|
- name: Build MLC-LLM
|
|
run: >-
|
|
ci/task/build_win.bat
|