@@ -202,13 +202,16 @@ jobs:
202
202
echo "::endgroup::"
203
203
done
204
204
205
- publish-standalone :
205
+ publish-standalone-dry-run :
206
206
runs-on : ubuntu-latest
207
207
needs : build
208
- permissions :
209
- contents : write # IMPORTANT: mandatory for making GitHub Releases
208
+ # permissions:
209
+ # contents: write # IMPORTANT: mandatory for making GitHub Releases
210
210
steps :
211
211
- uses : actions/checkout@v4
212
+ with :
213
+ fetch-depth : 0 # Fetch all history for all tags and branches
214
+ tags : true # Fetch all tags as well, `fetch-depth: 0` might be sufficient depending on Git version
212
215
- name : Download standalone Docker
213
216
uses : actions/download-artifact@v3
214
217
with :
@@ -219,23 +222,29 @@ jobs:
219
222
- name : Unpack files
220
223
run : |
221
224
mkdir dist
222
- mv dist-docker-coq-dev/standalone.tar.gz dist/fiat-crypto-docker-coq-dev.tar.gz
225
+ echo "::group::find arch"
226
+ ( cd dist-docker-coq-dev && tar -xzvf standalone.tar.gz )
227
+ arch="$(etc/ci/find-arch.sh dist-docker-coq-dev/word_by_word_montgomery "unknown")"
228
+ tag="$(git describe --tags HEAD)"
229
+ fname="Fiat-Cryptography_${tag}_Linux_docker_dev_${arch}.tar.gz"
230
+ echo "$fname"
231
+ mv dist-docker-coq-dev/standalone.tar.gz "dist/$fname"
223
232
find dist
224
- tar -tvf dist/fiat-crypto-docker-coq-dev.tar.gz
225
- - name : Upload artifacts to GitHub Release
226
- env :
227
- GITHUB_TOKEN : ${{ github.token }}
228
- # Upload to GitHub Release using the `gh` CLI.
229
- # `dist/` contains the built packages
230
- run : >-
231
- gh release upload
232
- '${{ github.ref_name }}' dist/**
233
- --repo '${{ github.repository }}'
234
- if : ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'release' }}
233
+ tar -tvf " dist/$fname"
234
+ # - name: Upload artifacts to GitHub Release
235
+ # env:
236
+ # GITHUB_TOKEN: ${{ github.token }}
237
+ # # Upload to GitHub Release using the `gh` CLI.
238
+ # # `dist/` contains the built packages
239
+ # run: >-
240
+ # gh release upload
241
+ # '${{ github.ref_name }}' dist/**
242
+ # --repo '${{ github.repository }}'
243
+ # if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'release' }}
235
244
236
245
docker-check-all :
237
246
runs-on : ubuntu-latest
238
- needs : [build, test-amd64, test-standalone, publish-standalone]
247
+ needs : [build, test-amd64, test-standalone, publish-standalone-dry-run ]
239
248
if : always()
240
249
steps :
241
250
- run : echo 'build passed'
@@ -244,13 +253,13 @@ jobs:
244
253
if : ${{ needs.test-amd64.result == 'success' }}
245
254
- run : echo 'test-standalone passed'
246
255
if : ${{ needs.test-standalone.result == 'success' }}
247
- - run : echo 'publish-standalone passed'
248
- if : ${{ needs.publish-standalone.result == 'success' }}
256
+ - run : echo 'publish-standalone-dry-run passed'
257
+ if : ${{ needs.publish-standalone-dry-run .result == 'success' }}
249
258
- run : echo 'build failed' && false
250
259
if : ${{ needs.build.result != 'success' }}
251
260
- run : echo 'test-amd64 failed' && false
252
261
if : ${{ needs.test-amd64.result != 'success' }}
253
262
- run : echo 'test-standalone failed' && false
254
263
if : ${{ needs.test-standalone.result != 'success' }}
255
- - run : echo 'publish-standalone failed' && false
256
- if : ${{ needs.publish-standalone.result != 'success' }}
264
+ - run : echo 'publish-standalone-dry-run failed' && false
265
+ if : ${{ needs.publish-standalone-dry-run .result != 'success' }}
0 commit comments