Skip to content

Commit 87cc674

Browse files
add back cuda builds
1 parent bfcd6e2 commit 87cc674

File tree

1 file changed

+68
-56
lines changed

1 file changed

+68
-56
lines changed

.github/workflows/build.yaml

Lines changed: 68 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -161,62 +161,74 @@
161161
type=semver,pattern=cpu-{{major}}.{{minor}}
162162
type=raw,value=cpu-latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
163163
type=raw,value=cpu-sha-${{ env.GITHUB_SHA_SHORT }}
164-
# - name: Build and push Docker image
165-
# id: build-and-push-75
166-
# uses: docker/build-push-action@v4
167-
# with:
168-
# context: .
169-
# file: Dockerfile-cuda
170-
# push: ${{ github.event_name != 'pull_request' }}
171-
# platforms: 'linux/amd64'
172-
# build-args: |
173-
# CUDA_COMPUTE_CAP=75
174-
# GIT_SHA=${{ env.GITHUB_SHA }}
175-
# DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
176-
# tags: ${{ steps.meta-75.outputs.tags }}
177-
# labels: ${{ steps.meta-75.outputs.labels }}
178-
# - name: Build and push Docker image
179-
# id: build-and-push-80
180-
# uses: docker/build-push-action@v4
181-
# with:
182-
# context: .
183-
# file: Dockerfile-cuda
184-
# push: ${{ github.event_name != 'pull_request' }}
185-
# platforms: 'linux/amd64'
186-
# build-args: |
187-
# CUDA_COMPUTE_CAP=80
188-
# GIT_SHA=${{ env.GITHUB_SHA }}
189-
# DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
190-
# tags: ${{ steps.meta-80.outputs.tags }}
191-
# labels: ${{ steps.meta-80.outputs.labels }}
192-
# - name: Build and push Docker image
193-
# id: build-and-push-86
194-
# uses: docker/build-push-action@v4
195-
# with:
196-
# context: .
197-
# file: Dockerfile-cuda
198-
# push: ${{ github.event_name != 'pull_request' }}
199-
# platforms: 'linux/amd64'
200-
# build-args: |
201-
# CUDA_COMPUTE_CAP=86
202-
# GIT_SHA=${{ env.GITHUB_SHA }}
203-
# DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
204-
# tags: ${{ steps.meta-86.outputs.tags }}
205-
# labels: ${{ steps.meta-86.outputs.labels }}
206-
# - name: Build and push Docker image
207-
# id: build-and-push-90
208-
# uses: docker/build-push-action@v4
209-
# with:
210-
# context: .
211-
# file: Dockerfile-cuda
212-
# push: ${{ github.event_name != 'pull_request' }}
213-
# platforms: 'linux/amd64'
214-
# build-args: |
215-
# CUDA_COMPUTE_CAP=90
216-
# GIT_SHA=${{ env.GITHUB_SHA }}
217-
# DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
218-
# tags: ${{ steps.meta-90.outputs.tags }}
219-
# labels: ${{ steps.meta-90.outputs.labels }}
164+
- name: Build and push Docker image
165+
id: build-and-push-75
166+
uses: docker/build-push-action@v4
167+
with:
168+
context: .
169+
file: Dockerfile-cuda
170+
push: ${{ github.event_name != 'pull_request' }}
171+
platforms: 'linux/amd64'
172+
build-args: |
173+
SCCACHE_GHA_ENABLED=on
174+
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
175+
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
176+
CUDA_COMPUTE_CAP=75
177+
GIT_SHA=${{ env.GITHUB_SHA }}
178+
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
179+
tags: ${{ steps.meta-75.outputs.tags }}
180+
labels: ${{ steps.meta-75.outputs.labels }}
181+
- name: Build and push Docker image
182+
id: build-and-push-80
183+
uses: docker/build-push-action@v4
184+
with:
185+
context: .
186+
file: Dockerfile-cuda
187+
push: ${{ github.event_name != 'pull_request' }}
188+
platforms: 'linux/amd64'
189+
build-args: |
190+
SCCACHE_GHA_ENABLED=on
191+
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
192+
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
193+
CUDA_COMPUTE_CAP=80
194+
GIT_SHA=${{ env.GITHUB_SHA }}
195+
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
196+
tags: ${{ steps.meta-80.outputs.tags }}
197+
labels: ${{ steps.meta-80.outputs.labels }}
198+
- name: Build and push Docker image
199+
id: build-and-push-86
200+
uses: docker/build-push-action@v4
201+
with:
202+
context: .
203+
file: Dockerfile-cuda
204+
push: ${{ github.event_name != 'pull_request' }}
205+
platforms: 'linux/amd64'
206+
build-args: |
207+
SCCACHE_GHA_ENABLED=on
208+
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
209+
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
210+
CUDA_COMPUTE_CAP=86
211+
GIT_SHA=${{ env.GITHUB_SHA }}
212+
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
213+
tags: ${{ steps.meta-86.outputs.tags }}
214+
labels: ${{ steps.meta-86.outputs.labels }}
215+
- name: Build and push Docker image
216+
id: build-and-push-90
217+
uses: docker/build-push-action@v4
218+
with:
219+
context: .
220+
file: Dockerfile-cuda
221+
push: ${{ github.event_name != 'pull_request' }}
222+
platforms: 'linux/amd64'
223+
build-args: |
224+
SCCACHE_GHA_ENABLED=on
225+
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
226+
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
227+
CUDA_COMPUTE_CAP=90
228+
GIT_SHA=${{ env.GITHUB_SHA }}
229+
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
230+
tags: ${{ steps.meta-90.outputs.tags }}
231+
labels: ${{ steps.meta-90.outputs.labels }}
220232
- name: Build and push Docker image
221233
id: build-and-push-cpu
222234
uses: docker/build-push-action@v4

0 commit comments

Comments
 (0)