-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
212 additions
and
25 deletions.
There are no files selected for viewing
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,153 @@ | ||
name: Release Packages | ||
|
||
on: | ||
create: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build-deb: | ||
runs-on: [self-hosted, Linux, X64, spr, sg] | ||
container: | ||
image: registry-1.docker.io/dashinfer/dev-ubuntu-22.04-x86:v1 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-tags: true | ||
|
||
- name: Pull LFS | ||
run: | | ||
git lfs pull | ||
- name: Build deb package | ||
run: | | ||
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') | ||
source activate ds_py | ||
AS_RELEASE_VERSION=$VERSION_NUMBER \ | ||
AS_PLATFORM="x86" \ | ||
AS_BUILD_PACKAGE=ON \ | ||
bash build.sh | ||
- name: Upload deb package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dashinfer-deb | ||
path: build/*.deb | ||
|
||
build-rpm: | ||
strategy: | ||
matrix: | ||
os: [spr, yitian] | ||
image: ["dev-centos7-x86:v1", "dev-alinux-arm:v1"] | ||
exclude: | ||
- os: spr | ||
image: "dev-alinux-arm:v1" | ||
- os: yitian | ||
image: "dev-centos7-x86:v1" | ||
runs-on: [self-hosted, Linux, "${{ matrix.os }}", sg] | ||
container: | ||
image: registry-1.docker.io/dashinfer/${{ matrix.image }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
fetch-tags: true | ||
|
||
- name: Pull LFS | ||
run: | | ||
git lfs pull | ||
- name: Build rpm package | ||
run: | | ||
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') | ||
source /opt/rh/devtoolset-7/enable | ||
source activate ds_py | ||
AS_RELEASE_VERSION=$VERSION_NUMBER \ | ||
AS_PLATFORM="x86" \ | ||
AS_BUILD_PACKAGE=ON \ | ||
bash build.sh | ||
- name: Upload rpm package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dashinfer-rpm-${{ matrix.os }} | ||
path: build/*.rpm | ||
|
||
|
||
build-wheels: | ||
strategy: | ||
matrix: | ||
os: [spr, yitian] | ||
image: ["dev-manylinux-x86:v1", "dev-manylinux-arm:v1"] | ||
exclude: | ||
- os: spr | ||
image: "dev-manylinux-arm:v1" | ||
- os: yitian | ||
image: "dev-manylinux-x86:v1" | ||
runs-on: [self-hosted, Linux, "${{ matrix.os }}", sg] | ||
container: | ||
image: registry-1.docker.io/dashinfer/${{ matrix.image }} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
fetch-tags: true | ||
|
||
- name: Build manylinux wheels | ||
run: | | ||
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') | ||
AS_RELEASE_VERSION=$VERSION_NUMBER bash scripts/release/python_manylinux_build.sh | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-manylinux-wheels-${{ matrix.os }} | ||
path: python/wheelhouse/*-manylinux*.whl | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
os: [spr, yitian] | ||
image: ["test-ubuntu-x86:v1", "test-centos-arm:v1"] | ||
exclude: | ||
- os: spr | ||
image: "test-centos-arm:v1" | ||
- os: yitian | ||
image: "test-ubuntu-x86:v1" | ||
runs-on: [self-hosted, Linux, "${{ matrix.os }}", sg] | ||
container: | ||
image: registry-1.docker.io/dashinfer/${{ matrix.image }} | ||
volumes: | ||
- /mnt/data0/models/modelscope:/github/home/.cache/modelscope | ||
options: "--ipc=host --cap-add SYS_NICE --cap-add SYS_PTRACE" | ||
needs: build-wheels | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download wheels | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-manylinux-wheels-${{ matrix.os }} | ||
path: python/wheelhouse | ||
|
||
- name: Test manylinux wheels | ||
run: | | ||
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') | ||
AS_RELEASE_VERSION=$VERSION_NUMBER bash scripts/release/python_manylinux_test.sh | ||
|
||
|
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
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
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