Skip to content

Commit fc04487

Browse files
authored
Upload on PR builds as well (#363)
* Upload on PR builds as well This is a follow-up to c8b4709, I forgot that we elide the upload jobs completely when not on `master` or `release-*`. This remediates the situation, uploading PR builds as well, but not codesigning them. * sign treehashes
1 parent c8b4709 commit fc04487

File tree

11 files changed

+122
-139
lines changed

11 files changed

+122
-139
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Salted__��*��8��ũ.O� ��ʶ��S����I�"�����X.Q٘oKS��(� ��T��w&��k?_s����_ I�%��ߙ;~0�
1+
Salted__V:l*SY'��rc�\b���9�T�nX ��vUd"�w�~0B� ���0�������&����7�^
2+
|IKg�v<;T�M��H���
0 Bytes
Binary file not shown.

pipelines/main/platforms/upload_freebsd.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ steps:
33
steps:
44
- label: ":freebsd: upload ${TRIPLET?}"
55
key: "upload_${TRIPLET?}"
6-
# We only upload to S3 if one of the following criteria are true:
7-
# 1. The branch is `master`.
8-
# 2. The branch is `release-*`.
9-
# 3. The build is a tag build AND the tag is `v*`.
10-
# 4. The pipeline is `julia-buildkite`.
11-
if: (build.branch == "master") || (build.branch =~ /^release-/) || (build.tag =~ /^v/) || (pipeline.slug == "julia-buildkite")
126
depends_on:
137
# Wait for the builder to finish
148
- "build_${TRIPLET?}"

pipelines/main/platforms/upload_linux.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ steps:
33
steps:
44
- label: ":linux: upload ${TRIPLET?}"
55
key: "upload_${TRIPLET?}"
6-
# We only upload to S3 if one of the following criteria are true:
7-
# 1. The branch is `master`.
8-
# 2. The branch is `release-*`.
9-
# 3. The build is a tag build AND the tag is `v*`.
10-
# 4. The pipeline is `julia-buildkite`.
11-
if: (build.branch == "master") || (build.branch =~ /^release-/) || (build.tag =~ /^v/) || (pipeline.slug == "julia-buildkite")
126
depends_on:
137
# Wait for the builder to finish
148
- "build_${TRIPLET?}"

pipelines/main/platforms/upload_macos.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ steps:
33
steps:
44
- label: ":macos: upload ${TRIPLET?}"
55
key: "upload_${TRIPLET?}"
6-
# We only upload to S3 if one of the following criteria are true:
7-
# 1. The branch is `master`.
8-
# 2. The branch is `release-*`.
9-
# 3. The build is a tag build AND the tag is `v*`.
10-
# 4. The pipeline is `julia-buildkite`.
11-
if: (build.branch == "master") || (build.branch =~ /^release-/) || (build.tag =~ /^v/) || (pipeline.slug == "julia-buildkite")
126
depends_on:
137
# Wait for the builder to finish
148
- "build_${TRIPLET?}"

pipelines/main/platforms/upload_windows.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ steps:
33
steps:
44
- label: ":windows: upload ${TRIPLET?}"
55
key: "upload_${TRIPLET?}"
6-
# We only upload to S3 if one of the following criteria are true:
7-
# 1. The branch is `master`.
8-
# 2. The branch is `release-*`.
9-
# 3. The build is a tag build AND the tag is `v*`.
10-
# 4. The pipeline is `julia-buildkite`.
11-
if: (build.branch == "master") || (build.branch =~ /^release-/) || (build.tag =~ /^v/) || (pipeline.slug == "julia-buildkite")
126
depends_on:
137
# Wait for the builder to finish
148
- "build_${TRIPLET?}"
0 Bytes
Binary file not shown.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Salted__�R��e��\���dx�J���?r��-pgg%�#8W@�#1x� �Cr���*�<~}�
2-
��M�_B����/ezqS������
3-
�?⪑�
1+
Salted__g�� ���T{£3liշ�D(X��sp�a�K�p��G�g����`!�F�M�$cp����D�J�{��%�bo�d�02�ѳ=G��H�J��
0 Bytes
Binary file not shown.

utilities/build_envs.sh

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,39 @@ S3_BUCKET="${S3_BUCKET:-julialangnightlies}"
138138
S3_BUCKET_PREFIX="${S3_BUCKET_PREFIX:-bin}"
139139

140140
# We generally upload to multiple upload targets
141-
UPLOAD_TARGETS=(
141+
UPLOAD_TARGETS=()
142+
143+
if [[ "${BUILDKITE_BRANCH}" == master ]] || [[ "${BUILDKITE_BRANCH}" == release-* ]] || [[ "${BUILDKITE_TAG}" == v* ]]; then
142144
# First, we have the canonical fully-specified upload target
143-
"${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}-${ARCH?}"
145+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}-${ARCH?}" )
144146

145147
# Next, we have the "majmin/latest" upload target
146-
"${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/${MAJMIN?}/julia-latest-${OS?}-${ARCH?}"
147-
)
148+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/${MAJMIN?}/julia-latest-${OS?}-${ARCH?}" )
148149

149-
# The absolute latest upload target is only for if we're on the `master` branch
150-
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
151-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/julia-latest-${OS?}-${ARCH?}" )
150+
# The absolute latest upload target is only for if we're on the `master` branch
151+
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
152+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/${ARCH?}/julia-latest-${OS?}-${ARCH?}" )
153+
fi
154+
155+
# Finally, for compatibility, we keep on uploading x86_64 and i686 targets to folders called `x64`
156+
# and `x86`, and ending in `-linux64` and `-linux32`, although I would very much like to stop doing that.
157+
if [[ "${ARCH}" == "x86_64" ]]; then
158+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}64" )
159+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/${MAJMIN?}/julia-latest-${OS?}64" )
160+
161+
# Only upload to absolute latest if we're on `master`
162+
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
163+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/julia-latest-${OS?}64" )
164+
fi
165+
elif [[ "${ARCH}" == "i686" ]]; then
166+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}32" )
167+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/${MAJMIN?}/julia-latest-${OS?}32" )
168+
169+
# Only upload to absolute latest if we're on `master`
170+
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
171+
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/julia-latest-${OS?}32" )
172+
fi
173+
fi
152174
fi
153175

154176
# If we're a pull request build, upload to a special `-prXXXX` location
@@ -157,26 +179,6 @@ if [[ "${BUILDKITE_PULL_REQUEST}" != "false" ]]; then
157179
fi
158180

159181

160-
# Finally, for compatibility, we keep on uploading x86_64 and i686 targets to folders called `x64`
161-
# and `x86`, and ending in `-linux64` and `-linux32`, although I would very much like to stop doing that.
162-
if [[ "${ARCH}" == "x86_64" ]]; then
163-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}64" )
164-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/${MAJMIN?}/julia-latest-${OS?}64" )
165-
166-
# Only upload to absolute latest if we're on `master`
167-
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
168-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x64/julia-latest-${OS?}64" )
169-
fi
170-
elif [[ "${ARCH}" == "i686" ]]; then
171-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/${MAJMIN?}/julia-${TAR_VERSION?}-${OS?}32" )
172-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/${MAJMIN?}/julia-latest-${OS?}32" )
173-
174-
# Only upload to absolute latest if we're on `master`
175-
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then
176-
UPLOAD_TARGETS+=( "${S3_BUCKET}/${S3_BUCKET_PREFIX}/${OS?}/x86/julia-latest-${OS?}32" )
177-
fi
178-
fi
179-
180182
# We used to name our darwin builds as `julia-*-mac64.tar.gz`, instead of `julia-*-macos-x86_64.tar.gz`.
181183
# Let's copy things over to the `mac` OS name for backwards compatibility:
182184
if [[ "${OS?}" == "macos" ]] || [[ "${OS?}" == "windows" ]]; then

0 commit comments

Comments
 (0)