chore: import upstream snapshot with attribution
Lint / lint (push) Has been cancelled
Build Docs / Deploy Docs (push) Has been cancelled
Windows CI / Windows (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:23:58 +08:00
commit 770d92cb1f
694 changed files with 114634 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Build Docs
on:
push:
branches:
- main
jobs:
test_linux:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configuring build Environment
run: |
sudo apt-get update
python -m pip install -U pip wheel
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Installing dependencies
run: |
python -m pip install -r docs/requirements.txt
gem install jekyll jekyll-remote-theme
- name: Deploying on GitHub Pages
if: github.ref == 'refs/heads/main'
run: |
git remote set-url origin https://x-access-token:${{ secrets.MLC_GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git config --global user.email "mlc-gh-actions-bot@nomail"
git config --global user.name "mlc-gh-actions-bot"
./scripts/gh_deploy_site.sh
+25
View File
@@ -0,0 +1,25 @@
name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: Lint-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
fetch-tags: true
- name: Set up uv
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
- name: Set up Python environment
run: uv sync --group lint --no-install-project
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+32
View File
@@ -0,0 +1,32 @@
name: 'Relax Submodule Sync'
on:
workflow_dispatch:
jobs:
sync:
name: 'Relax Submodule Sync'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Git Sumbodule Update
run: |
git submodule update --remote 3rdparty/tvm
- name: Commit update
env:
GITHUB_TOKEN: ${{ secrets.MLC_GITHUB_TOKEN }}
run: |
git config --global user.name 'Git bot'
git config --global user.email 'bot@noreply.github.com'
git remote set-url origin https://$GITHUB_TOKEN@github.com/mlc-ai/mlc-llm
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
+49
View File
@@ -0,0 +1,49 @@
# 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