File tree Expand file tree Collapse file tree 4 files changed +48
-7
lines changed Expand file tree Collapse file tree 4 files changed +48
-7
lines changed Original file line number Diff line number Diff line change 9
9
push_to_registry :
10
10
name : Push Docker image
11
11
runs-on : ubuntu-22.04
12
+ strategy :
13
+ matrix :
14
+ image-tag : [ "CUDA-12.9.1-Ubuntu-2004", "CUDA-12.9.1-devel-ubi8" ]
12
15
permissions :
13
16
packages : write
14
17
contents : read
28
31
id : meta
29
32
uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
30
33
with :
31
- image : noobwastaken/tensor-array
34
+ image : ${{ secrets.DOCKER_USERNAME }}/tensor-array
35
+ tags : ${{ matrix.image-tag }}
32
36
33
37
- name : Build and push Docker images
34
38
id : push
43
47
- name : Attest Build Provenance
44
48
uses : actions/attest-build-provenance@v2
45
49
with :
46
- subject-name : index.docker.io/noobwastaken /tensor-array
50
+ subject-name : index.docker.io/${{ secrets.DOCKER_USERNAME }} /tensor-array
47
51
subject-digest : ${{ steps.push.outputs.digest }}
48
52
push-to-registry : true
Original file line number Diff line number Diff line change 27
27
strategy :
28
28
fail-fast : false
29
29
matrix :
30
- image-os : [ "Ubuntu" ]
30
+ image-tag : [ "CUDA-12.9.1- Ubuntu-20.04", "CUDA-12.9.1-devel-ubi8 " ]
31
31
32
32
runs-on : ubuntu-22.04
33
33
@@ -73,15 +73,16 @@ jobs:
73
73
uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
74
74
with :
75
75
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
76
- tags : ${{ matrix.image-os }}
76
+ tags : |
77
+ type=raw,value=${{ matrix.image-tag }}
77
78
78
79
# Build and push Docker image with Buildx (don't push on PR)
79
80
# https://github.com/docker/build-push-action
80
81
- name : Build and push Docker image
81
82
id : build-and-push
82
83
uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
83
84
with :
84
- file : Dockerfolder/${{ matrix.image-os }}.Dockerfile
85
+ file : Dockerfolder/${{ matrix.image-tag }}.Dockerfile
85
86
push : ${{ github.event_name != 'pull_request' }}
86
87
tags : ${{ steps.meta.outputs.tags }}
87
88
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
- FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu22 .04
1
+ FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubuntu20 .04
2
2
3
3
RUN apt-get update
4
4
RUN apt-get upgrade -y
@@ -30,5 +30,6 @@ WORKDIR tensor-array/build
30
30
RUN cmake ..
31
31
RUN cmake --build .
32
32
RUN cmake --install .
33
+ RUN ctest
33
34
34
- WORKDIR /app/tensor-array
35
+ WORKDIR ..
Original file line number Diff line number Diff line change
1
+ FROM nvcr.io/nvidia/cuda:12.9.1-devel-ubi8
2
+
3
+ RUN apt-get update
4
+ RUN apt-get upgrade -y
5
+ RUN apt-get install curl -y
6
+
7
+ ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.27.9"
8
+
9
+ # Optionally install the cmake for vcpkg
10
+ COPY scripts/packages-install/reinstall-cmake.sh /tmp/
11
+
12
+ RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
13
+ chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
14
+ fi \
15
+ && rm -f /tmp/reinstall-cmake.sh
16
+
17
+
18
+ # [Optional] Uncomment this section to install additional vcpkg ports.
19
+ # RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
20
+
21
+ # [Optional] Uncomment this section to install additional packages.
22
+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
23
+ # && apt-get -y install --no-install-recommends <your-package-list-here>
24
+
25
+ WORKDIR /main-project
26
+ COPY ./ tensor-array/
27
+
28
+ WORKDIR tensor-array/build
29
+
30
+ RUN cmake ..
31
+ RUN cmake --build .
32
+ RUN cmake --install .
33
+ RUN ctest
34
+
35
+ WORKDIR ..
You can’t perform that action at this time.
0 commit comments