From 7990d252fd0174056330aeb6e6d41d7124bec302 Mon Sep 17 00:00:00 2001 From: Chen Xin Date: Mon, 4 Dec 2023 17:06:31 +0800 Subject: [PATCH] add cuda12.1 build check ci (#782) * update cuda12.1 build check ci * use matrix --- .github/workflows/linux-x64-gpu.yml | 10 +++++++--- .github/workflows/windows-x64-gpu.yml | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux-x64-gpu.yml b/.github/workflows/linux-x64-gpu.yml index 1670c9245a..ca75f22878 100644 --- a/.github/workflows/linux-x64-gpu.yml +++ b/.github/workflows/linux-x64-gpu.yml @@ -25,7 +25,11 @@ permissions: contents: read jobs: - cuda-118: + build: + strategy: + matrix: + cudaver: [11.8, 12.1] + name: cuda-${{ matrix.cudaver }} runs-on: ubuntu-latest steps: - name: Free disk space @@ -45,8 +49,8 @@ jobs: - name: Build uses: addnab/docker-run-action@v3 with: - image: openmmlab/lmdeploy-builder:cuda11.8 - options: -v ${{ github.workspace }}:/work --cpus=1.8 + image: openmmlab/lmdeploy-builder:cuda${{ matrix.cudaver }} + options: -v ${{ github.workspace }}:/work run: | cd /work source /opt/conda/bin/activate diff --git a/.github/workflows/windows-x64-gpu.yml b/.github/workflows/windows-x64-gpu.yml index 93839cfb89..c0e4e009cf 100644 --- a/.github/workflows/windows-x64-gpu.yml +++ b/.github/workflows/windows-x64-gpu.yml @@ -25,7 +25,11 @@ permissions: contents: read jobs: - cuda-118: + build: + strategy: + matrix: + cudaver: [11.8.0, 12.1.0] + name: cuda-${{ matrix.cudaver }} runs-on: windows-latest steps: - name: Checkout repository @@ -40,7 +44,7 @@ jobs: - uses: Jimver/cuda-toolkit@v0.2.11 id: cuda-toolkit with: - cuda: '11.8.0' + cuda: ${{ matrix.cudaver }} use-github-cache: false - name: Build wheel run: |