@@ -118,11 +118,12 @@ jobs:
118118 fail-fast : false
119119 matrix :
120120 image :
121+ - base
122+ sub :
121123 - ubuntu
122124 - centos
123125 - emscripten
124126 outputs :
125- images : ${{ steps.build-docker-image.outputs.images && fromJSON(steps.build-docker-image.outputs.images) }}
126127 coverage-artifact : ${{ steps.cov.outputs.artifact-name }}
127128 steps :
128129 - uses : actions/checkout@v3
@@ -139,15 +140,16 @@ jobs:
139140 - name : Prepare Meta
140141 id : prepare-meta
141142 timeout-minutes : 60
142- run : cargo xtask ci-job prepare-meta "${IMAGE}"
143+ run : cargo xtask ci-job prepare-meta "${IMAGE}.${SUB} "
143144 env :
144145 IMAGE : ${{ matrix.image }}
146+ SUB : ${{ matrix.sub }}
145147 shell : bash
146148
147149 - name : LLVM instrument coverage
148150 uses : ./.github/actions/cargo-llvm-cov
149151 with :
150- name : cross-${{matrix.image}}
152+ name : cross-${{matrix.image}}-${{matrix.sub}}
151153
152154 - name : Install cross
153155 if : matrix.deploy
@@ -164,30 +166,26 @@ jobs:
164166 - name : Build Docker image
165167 id : build-docker-image
166168 timeout-minutes : 60
167- run : cargo xtask build-docker-image -v "${IMAGE}"
169+ run : cargo xtask build-docker-image -v "${IMAGE}.${SUB} "
168170 env :
169171 IMAGE : ${{ matrix.image }}
172+ SUB : ${{ matrix.sub }}
170173 LABELS : ${{ steps.docker-meta.outputs.labels }}
171174 LATEST : ${{ needs.check.outputs.is-latest || 'false' }}
172175 shell : bash
173176
174177 - name : Save Docker Image
175178 id : save-docker-image
176- run : docker save "${IMAGE}:${TAG}" -o "${IMAGE}-${TAG}.tar"
179+ run : docker save "${IMAGE}:${TAG}" -o "${IMAGE}-${TAG}-${SUB} .tar"
177180 env :
178- IMAGE : ${{ matrix.image }}
179- TAG : ${{ env.GITHUB_REF_NAME }}
181+ IMAGE : ${{ matrix.image }}
182+ SUB : ${{ matrix.sub }}
183+ TAG : ${{ env.GITHUB_REF_NAME }}
180184
181185 - uses : actions/upload-artifact@v2
182186 with :
183- name : ${{ matrix.image }}-image-tarball
184- path : ${{ matrix.image }}-${{ env.GITHUB_REF_NAME }}.tar
185-
186- - uses : ./.github/actions/cargo-install-upload-artifacts
187- if : matrix.deploy
188- with :
189- target : ${{ matrix.image }}
190- image : ${{ steps.build-docker-image.outputs.image }}
187+ name : ${{ matrix.image }}-${{ matrix.sub }}-image-tarball
188+ path : ${{ matrix.image }}-${{ matrix.sub }}-${{ env.GITHUB_REF_NAME }}.tar
191189
192190 - name : Login to GitHub Container Registry
193191 uses : docker/login-action@v1
@@ -201,9 +199,10 @@ jobs:
201199 github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
202200 startsWith(github.ref, 'refs/tags/v')
203201 )
204- run : cargo xtask build-docker-image -v --push "${IMAGE}"
202+ run : cargo xtask build-docker-image -v "${IMAGE}.${SUB }"
205203 env :
206- IMAGE : ${{ matrix.target }}
204+ IMAGE : ${{ matrix.image }}
205+ SUB : ${{ matrix.sub }}
207206 LABELS : ${{ steps.docker-meta.outputs.labels }}
208207 LATEST : ${{ needs.check.outputs.is-latest || 'false' }}
209208 shell : bash
0 commit comments