@@ -98,63 +98,62 @@ jobs:
9898 fi
9999 echo "IMAGE_TAG_PREFIX=$IMAGE_TAG_PREFIX" >> $GITHUB_OUTPUT
100100
101- # build-images:
102- # name: Build images
103- # needs: compute-matrix
104- # secrets: inherit
105- # strategy:
106- # matrix: ${{ fromJson(needs.compute-matrix.outputs.MATRIX) }}
107- # uses: ./.github/workflows/build_images.yaml
108- # with:
109- # ARCHES: ${{ matrix.arch }}
110- # CUDA_VER: ${{ matrix.cuda_ver }}
111- # PYTHON_VER: ${{ matrix.python_ver }}
112- # CUOPT_VER: ${{ needs.compute-matrix.outputs.CUOPT_VER }}
113- # IMAGE_TAG_PREFIX: ${{ needs.compute-matrix.outputs.IMAGE_TAG_PREFIX }}
101+ build-images :
102+ name : Build images
103+ needs : compute-matrix
104+ secrets : inherit
105+ strategy :
106+ matrix : ${{ fromJson(needs.compute-matrix.outputs.MATRIX) }}
107+ uses : ./.github/workflows/build_images.yaml
108+ with :
109+ ARCHES : ${{ matrix.arch }}
110+ CUDA_VER : ${{ matrix.cuda_ver }}
111+ PYTHON_VER : ${{ matrix.python_ver }}
112+ CUOPT_VER : ${{ needs.compute-matrix.outputs.CUOPT_VER }}
113+ IMAGE_TAG_PREFIX : ${{ needs.compute-matrix.outputs.IMAGE_TAG_PREFIX }}
114114
115- # build-cuopt-multiarch-manifest:
116- # name: Build cuopt multiarch manifest
117- # needs: build-images
118- # strategy:
119- # matrix:
120- # CUDA_VER: ${{ fromJson(needs.compute-matrix.outputs.MATRIX).cuda_ver }}
121- # PYTHON_VER: ${{ fromJson(needs.compute-matrix.outputs.MATRIX).python_ver }}
122- # runs-on: ubuntu-latest
123- # steps:
124- # - name: Checkout code repo
125- # uses: actions/checkout@v4
126- # with:
127- # fetch-depth: 0
128- # - name: Login to DockerHub
129- # uses: docker/login-action@v3
130- # with:
131- # username: ${{ secrets.CUOPT_DOCKERHUB_USERNAME }}
132- # password: ${{ secrets.CUOPT_DOCKERHUB_TOKEN }}
133- # - name: Login to NGC
134- # uses: docker/login-action@v3
135- # with:
136- # registry: "nvcr.io"
137- # username: "$oauthtoken"
138- # password: ${{ secrets.CUOPT_NGC_DOCKER_KEY }}
139- # - name: Trim CUDA and Python versions
140- # id: trim
141- # run: |
142- # echo "CUDA_SHORT=$(echo '${{ matrix.CUDA_VER }}' | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_OUTPUT
143- # echo "PYTHON_SHORT=$(echo '${{ matrix.PYTHON_VER }}' | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_OUTPUT
144- # - name: Create multiarch manifest
145- # shell: bash
146- # env:
147- # CUOPT_VER: ${{ needs.compute-matrix.outputs.CUOPT_VER }}
148- # CUDA_SHORT: ${{ steps.trim.outputs.CUDA_SHORT }}
149- # PYTHON_SHORT: ${{ steps.trim.outputs.PYTHON_SHORT }}
150- # IMAGE_TAG_PREFIX: ${{ needs.compute-matrix.outputs.IMAGE_TAG_PREFIX }}
151- # BUILD_TYPE: ${{ inputs.build_type }}
152- # run: bash ci/docker/create_multiarch_manifest.sh
115+ build-cuopt-multiarch-manifest :
116+ name : Build cuopt multiarch manifest
117+ needs : build-images
118+ strategy :
119+ matrix :
120+ CUDA_VER : ${{ fromJson(needs.compute-matrix.outputs.MATRIX).cuda_ver }}
121+ PYTHON_VER : ${{ fromJson(needs.compute-matrix.outputs.MATRIX).python_ver }}
122+ runs-on : ubuntu-latest
123+ steps :
124+ - name : Checkout code repo
125+ uses : actions/checkout@v4
126+ with :
127+ fetch-depth : 0
128+ - name : Login to DockerHub
129+ uses : docker/login-action@v3
130+ with :
131+ username : ${{ secrets.CUOPT_DOCKERHUB_USERNAME }}
132+ password : ${{ secrets.CUOPT_DOCKERHUB_TOKEN }}
133+ - name : Login to NGC
134+ uses : docker/login-action@v3
135+ with :
136+ registry : " nvcr.io"
137+ username : " $oauthtoken"
138+ password : ${{ secrets.CUOPT_NGC_DOCKER_KEY }}
139+ - name : Trim CUDA and Python versions
140+ id : trim
141+ run : |
142+ echo "CUDA_SHORT=$(echo '${{ matrix.CUDA_VER }}' | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_OUTPUT
143+ echo "PYTHON_SHORT=$(echo '${{ matrix.PYTHON_VER }}' | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_OUTPUT
144+ - name : Create multiarch manifest
145+ shell : bash
146+ env :
147+ CUOPT_VER : ${{ needs.compute-matrix.outputs.CUOPT_VER }}
148+ CUDA_SHORT : ${{ steps.trim.outputs.CUDA_SHORT }}
149+ PYTHON_SHORT : ${{ steps.trim.outputs.PYTHON_SHORT }}
150+ IMAGE_TAG_PREFIX : ${{ needs.compute-matrix.outputs.IMAGE_TAG_PREFIX }}
151+ BUILD_TYPE : ${{ inputs.build_type }}
152+ run : bash ci/docker/create_multiarch_manifest.sh
153153
154154 test-images :
155155 name : Test images
156- # needs: build-cuopt-multiarch-manifest
157- needs : compute-matrix
156+ needs : build-cuopt-multiarch-manifest
158157 secrets : inherit
159158 strategy :
160159 matrix :
0 commit comments