Skip to content

Commit e2ed8f2

Browse files
committed
[GHA] Try snapshot builds with older AWS CLI
1 parent f77c856 commit e2ed8f2

File tree

1 file changed

+82
-55
lines changed

1 file changed

+82
-55
lines changed

.github/workflows/gh-hosted-eclipse-distro-build.yml

Lines changed: 82 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
eclipse-distro-build:
4242
runs-on: ubuntu-latest
4343
steps:
44+
- name: Setup AWS CLI 2.22
45+
run: |
46+
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
47+
unzip -q awscliv2.zip
48+
sudo ./aws/install --update
49+
aws --version
4450
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
4551
with:
4652
sparse-checkout: |
@@ -150,62 +156,73 @@ jobs:
150156
p2_path: ${{ steps.s3-paths.outputs.p2_path }}
151157
version: ${{ steps.project-version.outputs.version }}
152158

153-
# sign-win-distros:
154-
# needs: [ eclipse-distro-build ]
155-
# runs-on: ubuntu-latest
156-
# steps:
157-
# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
158-
# with:
159-
# sparse-checkout: |
160-
# .github
161-
# - name: Download Win Zips from S3 for Signing
162-
# run: |
163-
# rm -f spring-tool-suite-4*win*.zip*
164-
# rm -f spring-tool-suite-4*win*.self-extracting.jar*
165-
# ls
166-
# aws s3 mv s3://$AWS_S3_BUCKET/sts4-distro-ci-temp/${{ needs.eclipse-distro-build.outputs.id }} . --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --exclude "*/*" --no-progress
167-
# - name: Sign EXE within zip files
168-
# id: sign
169-
# run: |
170-
# files=`ls spring-tool-suite-4*win*.zip`
171-
# for file in $files
172-
# do
173-
# ${{ github.workspace }}/.github/scripts/sign-exe-in-zip-file.sh $file ${{ github.workspace }}/.github/scripts/sign-exe.sh ${{ github.workspace }}/.github/scripts/self-extracting-jar-creator.jar ${{ github.run_id }} &
174-
# done
175-
# FAIL=0
176-
# for job in `jobs -p`
177-
# do
178-
# wait $job || let "FAIL+=1"
179-
# done
180-
# if [ "$FAIL" == "0" ];
181-
# then
182-
# echo "Done signing EXE files"
183-
# else
184-
# echo "Failed signing one or more EXE files"
185-
# exit 1
186-
# fi
187-
# - name: Update Win zip/jar on S3
188-
# id: update-s3
189-
# run: |
190-
# dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
191-
# echo "Processing S3 update..."
192-
# ls spring-tool-suite-4*win*
193-
# echo "Removing old win zip and self extracting jar files from S3..."
194-
# aws s3 rm s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*"
195-
# echo "Uploading new win zip and self extracting jar files to S3..."
196-
# aws s3 mv . s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*" --no-progress
197-
# - name: Update Nightly Distro Downloads page
198-
# if: ${{ inputs.build_type == 'snapshot' }}
199-
# run: |
200-
# dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
201-
# eclipse_profile=${{ inputs.eclipse_profile }}
202-
# eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
203-
# ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
159+
sign-win-distros:
160+
needs: [ eclipse-distro-build ]
161+
runs-on: ubuntu-latest
162+
steps:
163+
- name: Setup AWS CLI 2.22
164+
run: |
165+
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
166+
unzip -q awscliv2.zip
167+
sudo ./aws/install --update
168+
aws --version
169+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
170+
with:
171+
sparse-checkout: |
172+
.github
173+
- name: Download Win Zips from S3 for Signing
174+
run: |
175+
rm -f spring-tool-suite-4*win*.zip*
176+
rm -f spring-tool-suite-4*win*.self-extracting.jar*
177+
ls
178+
aws s3 mv s3://$AWS_S3_BUCKET/sts4-distro-ci-temp/${{ needs.eclipse-distro-build.outputs.id }} . --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --exclude "*/*" --no-progress
179+
- name: Sign EXE within zip files
180+
id: sign
181+
run: |
182+
files=`ls spring-tool-suite-4*win*.zip`
183+
for file in $files
184+
do
185+
${{ github.workspace }}/.github/scripts/sign-exe-in-zip-file.sh $file ${{ github.workspace }}/.github/scripts/sign-exe.sh ${{ github.workspace }}/.github/scripts/self-extracting-jar-creator.jar ${{ github.run_id }} &
186+
done
187+
FAIL=0
188+
for job in `jobs -p`
189+
do
190+
wait $job || let "FAIL+=1"
191+
done
192+
if [ "$FAIL" == "0" ];
193+
then
194+
echo "Done signing EXE files"
195+
else
196+
echo "Failed signing one or more EXE files"
197+
exit 1
198+
fi
199+
- name: Update Win zip/jar on S3
200+
id: update-s3
201+
run: |
202+
dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
203+
echo "Processing S3 update..."
204+
ls spring-tool-suite-4*win*
205+
echo "Removing old win zip and self extracting jar files from S3..."
206+
aws s3 rm s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*"
207+
echo "Uploading new win zip and self extracting jar files to S3..."
208+
aws s3 mv . s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*" --no-progress
209+
- name: Update Nightly Distro Downloads page
210+
if: ${{ inputs.build_type == 'snapshot' }}
211+
run: |
212+
dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
213+
eclipse_profile=${{ inputs.eclipse_profile }}
214+
eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
215+
${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
204216
205217
sign-osx-distros:
206218
needs: [ eclipse-distro-build ]
207219
runs-on: macos-15
208220
steps:
221+
- name: Setup AWS CLI 2.22
222+
run: |
223+
curl -s "https://awscli.amazonaws.com/AWSCLIV2-2.22.35.pkg" -o "awscliv2.pkg"
224+
sudo installer -pkg ./awscliv2.pkg -target /
225+
aws --version
209226
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
210227
with:
211228
sparse-checkout: |
@@ -295,11 +312,16 @@ jobs:
295312
rm -rf *spring-tool-suite-4*macosx*
296313
297314
purge_cache:
298-
# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ]
299-
needs: [ eclipse-distro-build, sign-osx-distros ]
315+
needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ]
300316
if: ${{ always() && inputs.build_type != 'snapshot' && contains(join(needs.*.result, ','), 'success')}}
301317
runs-on: ubuntu-latest
302318
steps:
319+
- name: Setup AWS CLI 2.22
320+
run: |
321+
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
322+
unzip -q awscliv2.zip
323+
sudo ./aws/install --update
324+
aws --version
303325
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
304326
with:
305327
sparse-checkout: |
@@ -389,11 +411,16 @@ jobs:
389411
}"
390412
391413
cleanup:
392-
# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ]
393-
needs: [ eclipse-distro-build, sign-osx-distros ]
414+
needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ]
394415
if: ${{ always() }}
395416
runs-on: ubuntu-latest
396417
steps:
418+
- name: Setup AWS CLI 2.22
419+
run: |
420+
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
421+
unzip -q awscliv2.zip
422+
sudo ./aws/install --update
423+
aws --version
397424
- name: Remove Temp Build Artifacts from S3
398425
id: cleanup-s3-temp-storage
399426
run: |

0 commit comments

Comments
 (0)