-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds windows CI.
- Loading branch information
Showing
6 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# GH actions. | ||
# We use it to cover windows builds | ||
# Jenkins is still the primary CI | ||
name: Windows CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- win | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Windows: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: 'cmd /C call {0}' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
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 | ||
- name: Build MLC-LLM | ||
run: >- | ||
ci/task/build_win.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: mlc-llm-build | ||
|
||
channels: | ||
- conda-forge | ||
|
||
dependencies: | ||
- conda-build | ||
- anaconda-client | ||
- libvulkan-headers | ||
- libvulkan-loader | ||
- spirv-tools | ||
- spirv-headers | ||
- git | ||
- cmake | ||
- bzip2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cd mlc-llm | ||
rd /s /q build | ||
mkdir build | ||
cd build | ||
|
||
cmake -A x64 -Thost=x64 ^ | ||
-G "Visual Studio 17 2022" ^ | ||
-DUSE_VULKAN=ON ^ | ||
.. | ||
|
||
cmake --build . --parallel 3 --config Release -- /m | ||
|
||
cd ..\.. | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
echo Build success | ||
) else ( | ||
echo Build failed | ||
exit /b 1 | ||
) |