Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 91eb26b

Browse files
committedMar 5, 2025·
Release action: avoid duplicate releases
Because of the "matrix", multiple jobs race to create a single release and sometimes create duplicates. This is crude but should help with that.
1 parent 251efad commit 91eb26b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎.github/workflows/release.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,16 @@ jobs:
181181
include:
182182
- target: 'x86_64-unknown-linux-musl'
183183
release_name: 'enclaver-linux-x86_64'
184+
delay: 60
184185
- target: 'aarch64-unknown-linux-musl'
185186
release_name: 'enclaver-linux-aarch64'
187+
delay: 120
186188
- target: 'x86_64-apple-darwin'
187189
release_name: 'enclaver-macos-x86_64'
190+
delay: 180
188191
- target: 'aarch64-apple-darwin'
189192
release_name: 'enclaver-macos-aarch64'
193+
delay: 240
190194

191195
steps:
192196
- name: Download Binaries
@@ -195,6 +199,10 @@ jobs:
195199
- name: Construct Release Artifact
196200
shell: bash
197201
run: |
202+
echo Delaying for ${{ matrix.delay }} secs
203+
sleep ${{ matrix.delay }}
204+
echo Proceeding
205+
198206
release_dir="${{ matrix.release_name }}-${{ github.ref_name }}"
199207
200208
mkdir ${release_dir}

0 commit comments

Comments
 (0)
Please sign in to comment.