@@ -107,11 +107,12 @@ jobs:
107107 fail-fast : false
108108 matrix :
109109 image :
110+ - base
111+ sub :
110112 - ubuntu
111113 - centos
112114 - emscripten
113115 outputs :
114- images : ${{ steps.build-docker-image.outputs.images && fromJSON(steps.build-docker-image.outputs.images) }}
115116 coverage-artifact : ${{ steps.cov.outputs.artifact-name }}
116117 steps :
117118 - uses : actions/checkout@v3
@@ -128,15 +129,16 @@ jobs:
128129 - name : Prepare Meta
129130 id : prepare-meta
130131 timeout-minutes : 60
131- run : cargo xtask ci-job prepare-meta "${IMAGE}"
132+ run : cargo xtask ci-job prepare-meta "${IMAGE}.${SUB} "
132133 env :
133134 IMAGE : ${{ matrix.image }}
135+ SUB : ${{ matrix.sub }}
134136 shell : bash
135137
136138 - name : LLVM instrument coverage
137139 uses : ./.github/actions/cargo-llvm-cov
138140 with :
139- name : cross-${{matrix.image}}
141+ name : cross-${{matrix.image}}-${{matrix.sub}}
140142
141143 - name : Install cross
142144 if : matrix.deploy
@@ -153,30 +155,26 @@ jobs:
153155 - name : Build Docker image
154156 id : build-docker-image
155157 timeout-minutes : 60
156- run : cargo xtask build-docker-image -v "${IMAGE}"
158+ run : cargo xtask build-docker-image -v "${IMAGE}.${SUB} "
157159 env :
158160 IMAGE : ${{ matrix.image }}
161+ SUB : ${{ matrix.sub }}
159162 LABELS : ${{ steps.docker-meta.outputs.labels }}
160163 LATEST : ${{ needs.check.outputs.is-latest || 'false' }}
161164 shell : bash
162165
163166 - name : Save Docker Image
164167 id : save-docker-image
165- run : docker save "${IMAGE}:${TAG}" -o "${IMAGE}-${TAG}.tar"
168+ run : docker save "${IMAGE}:${TAG}" -o "${IMAGE}-${TAG}-${SUB} .tar"
166169 env :
167- IMAGE : ${{ matrix.image }}
168- TAG : ${{ env.GITHUB_REF_NAME }}
170+ IMAGE : ${{ matrix.image }}
171+ SUB : ${{ matrix.sub }}
172+ TAG : ${{ env.GITHUB_REF_NAME }}
169173
170174 - uses : actions/upload-artifact@v2
171175 with :
172- name : ${{ matrix.image }}-image-tarball
173- path : ${{ matrix.image }}-${{ env.GITHUB_REF_NAME }}.tar
174-
175- - uses : ./.github/actions/cargo-install-upload-artifacts
176- if : matrix.deploy
177- with :
178- target : ${{ matrix.image }}
179- image : ${{ steps.build-docker-image.outputs.image }}
176+ name : ${{ matrix.image }}-${{ matrix.sub }}-image-tarball
177+ path : ${{ matrix.image }}-${{ matrix.sub }}-${{ env.GITHUB_REF_NAME }}.tar
180178
181179 - name : Login to GitHub Container Registry
182180 uses : docker/login-action@v1
@@ -190,9 +188,10 @@ jobs:
190188 github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
191189 startsWith(github.ref, 'refs/tags/v')
192190 )
193- run : cargo xtask build-docker-image -v --push "${IMAGE}"
191+ run : cargo xtask build-docker-image -v "${IMAGE}.${SUB }"
194192 env :
195- IMAGE : ${{ matrix.target }}
193+ IMAGE : ${{ matrix.image }}
194+ SUB : ${{ matrix.sub }}
196195 LABELS : ${{ steps.docker-meta.outputs.labels }}
197196 LATEST : ${{ needs.check.outputs.is-latest || 'false' }}
198197 shell : bash
0 commit comments