Skip to content

Commit

Permalink
add cuda12.1 build check ci (#782)
Browse files Browse the repository at this point in the history
* update cuda12.1 build check ci

* use matrix
  • Loading branch information
irexyc authored Dec 4, 2023
1 parent 7f943a2 commit 7990d25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/linux-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/windows-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,7 +44,7 @@ jobs:
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.8.0'
cuda: ${{ matrix.cudaver }}
use-github-cache: false
- name: Build wheel
run: |
Expand Down

0 comments on commit 7990d25

Please sign in to comment.