Unverified Commit 7990d252 authored by Chen Xin's avatar Chen Xin Committed by GitHub
Browse files

add cuda12.1 build check ci (#782)

* update cuda12.1 build check ci

* use matrix
parent 7f943a26
...@@ -25,7 +25,11 @@ permissions: ...@@ -25,7 +25,11 @@ permissions:
contents: read contents: read
jobs: jobs:
cuda-118: build:
strategy:
matrix:
cudaver: [11.8, 12.1]
name: cuda-${{ matrix.cudaver }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Free disk space - name: Free disk space
...@@ -45,8 +49,8 @@ jobs: ...@@ -45,8 +49,8 @@ jobs:
- name: Build - name: Build
uses: addnab/docker-run-action@v3 uses: addnab/docker-run-action@v3
with: with:
image: openmmlab/lmdeploy-builder:cuda11.8 image: openmmlab/lmdeploy-builder:cuda${{ matrix.cudaver }}
options: -v ${{ github.workspace }}:/work --cpus=1.8 options: -v ${{ github.workspace }}:/work
run: | run: |
cd /work cd /work
source /opt/conda/bin/activate source /opt/conda/bin/activate
......
...@@ -25,7 +25,11 @@ permissions: ...@@ -25,7 +25,11 @@ permissions:
contents: read contents: read
jobs: jobs:
cuda-118: build:
strategy:
matrix:
cudaver: [11.8.0, 12.1.0]
name: cuda-${{ matrix.cudaver }}
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
...@@ -40,7 +44,7 @@ jobs: ...@@ -40,7 +44,7 @@ jobs:
- uses: Jimver/cuda-toolkit@v0.2.11 - uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit id: cuda-toolkit
with: with:
cuda: '11.8.0' cuda: ${{ matrix.cudaver }}
use-github-cache: false use-github-cache: false
- name: Build wheel - name: Build wheel
run: | run: |
......
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