Unverified Commit af96ca11 authored by Sahithi Chigurupati's avatar Sahithi Chigurupati Committed by GitHub
Browse files

[CI] Merge build-dev into workflow matrix (#11345)


Signed-off-by: default avatarSahithi Chigurupati <chigurupati.sahithi@gmail.com>
parent 9082a7d3
...@@ -6,55 +6,22 @@ on: ...@@ -6,55 +6,22 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
jobs: jobs:
build-dev-x86: build-dev:
if: ${{ github.repository == 'sgl-project/sglang' }} if: ${{ github.repository == 'sgl-project/sglang' }}
runs-on: x64-docker-build-node runs-on: ${{ matrix.runner }}
strategy: strategy:
matrix: matrix:
variant: include:
- version: 12.9.1 - runner: x64-docker-build-node
type: all platform: linux/amd64
build_type: all
tag: dev-x86 tag: dev-x86
steps: version: 12.9.1
- name: Delete huge unnecessary tools folder - runner: arm-docker-build-node
run: rm -rf /opt/hostedtoolcache platform: linux/arm64
build_type: all_aarch64
- name: Checkout repository
uses: actions/checkout@v4
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
docker-images: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Dev Image (x86)
run: |
docker buildx build --platform linux/amd64 --push -f docker/Dockerfile --build-arg CUDA_VERSION=${{ matrix.variant.version }} --build-arg BUILD_TYPE=${{ matrix.variant.type }} --build-arg CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) -t lmsysorg/sglang:${{ matrix.variant.tag }} --no-cache .
build-dev-arm:
if: ${{ github.repository == 'sgl-project/sglang' }}
runs-on: arm-docker-build-node
strategy:
matrix:
variant:
- version: 12.9.1
type: all_aarch64
tag: dev-arm64 tag: dev-arm64
version: 12.9.1
steps: steps:
- name: Delete huge unnecessary tools folder - name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache run: rm -rf /opt/hostedtoolcache
...@@ -82,13 +49,13 @@ jobs: ...@@ -82,13 +49,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Blackwell Image (ARM) - name: Build and Push Dev Image
run: | run: |
docker buildx build --platform linux/arm64 --push -f docker/Dockerfile --build-arg CUDA_VERSION=${{ matrix.variant.version }} --build-arg BUILD_TYPE=${{ matrix.variant.type }} --build-arg CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) -t lmsysorg/sglang:${{ matrix.variant.tag }} --no-cache . docker buildx build --platform ${{ matrix.platform }} --push -f docker/Dockerfile --build-arg CUDA_VERSION=${{ matrix.version }} --build-arg BUILD_TYPE=${{ matrix.build_type }} --build-arg CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) -t lmsysorg/sglang:${{ matrix.tag }} --no-cache .
create-manifests: create-manifests:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: [build-dev-x86, build-dev-arm] needs: [build-dev]
if: ${{ github.repository == 'sgl-project/sglang' }} if: ${{ github.repository == 'sgl-project/sglang' }}
strategy: strategy:
matrix: matrix:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment