Skip to content

Commit c368199

Browse files
committed
[github-ci] enable CI pipelines for ubuntu24.04 precompiled drivers
Signed-off-by: Tariq Ibrahim <[email protected]>
1 parent b0a1883 commit c368199

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/image.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ jobs:
105105
- generic
106106
- nvidia
107107
- oracle
108+
dist:
109+
- ubuntu22.04
110+
- ubuntu24.04
108111
ispr:
109112
- ${{github.event_name == 'pull_request'}}
110113
exclude:
@@ -116,6 +119,8 @@ jobs:
116119
flavor: nvidia
117120
- ispr: true
118121
flavor: oracle
122+
- driver: 535
123+
dist: ubuntu24.04
119124
steps:
120125
- uses: actions/checkout@v4
121126
name: Check out code
@@ -153,9 +158,15 @@ jobs:
153158
env:
154159
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/driver
155160
VERSION: ${COMMIT_SHORT_SHA}
156-
BASE_TARGET: jammy
157161
run: |
158-
make DRIVER_BRANCH=${{ matrix.driver }} KERNEL_FLAVOR=${{ matrix.flavor }} build-base-${BASE_TARGET}
162+
if [[ "${{ matrix.dist }}" == "ubuntu22.04" ]]; then
163+
BASE_TARGET="jammy"
164+
LTS_KERNEL="5.15"
165+
elif [[ "${{ matrix.dist }}" == "ubuntu24.04" ]]; then
166+
BASE_TARGET="noble"
167+
LTS_KERNEL="6.8"
168+
fi
169+
make DRIVER_BRANCH=${{ matrix.driver }} KERNEL_FLAVOR=${{ matrix.flavor }} LTS_KERNEL=${LTS_KERNEL} build-base-${BASE_TARGET}
159170
160171
trap "docker rm -f base-${BASE_TARGET}-${{ matrix.flavor }}" EXIT
161172
docker run -d --name base-${BASE_TARGET}-${{ matrix.flavor }} ghcr.io/nvidia/driver:base-${BASE_TARGET}-${{ matrix.flavor }}-${{ matrix.driver }}
@@ -169,7 +180,7 @@ jobs:
169180
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/driver
170181
VERSION: ${COMMIT_SHORT_SHA}
171182
PRECOMPILED: "true"
172-
DIST: signed_ubuntu22.04
183+
DIST: signed_${{ matrix.dist }}
173184
run: |
174185
source kernel_version.txt && \
175186
make DRIVER_VERSIONS=${DRIVER_VERSIONS} DRIVER_BRANCH=${{ matrix.driver }} build-${DIST}-${DRIVER_VERSION}

0 commit comments

Comments
 (0)