|
41 | 41 | eclipse-distro-build: |
42 | 42 | runs-on: ubuntu-latest |
43 | 43 | 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 |
44 | 50 | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 |
45 | 51 | with: |
46 | 52 | sparse-checkout: | |
@@ -150,62 +156,73 @@ jobs: |
150 | 156 | p2_path: ${{ steps.s3-paths.outputs.p2_path }} |
151 | 157 | version: ${{ steps.project-version.outputs.version }} |
152 | 158 |
|
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 |
204 | 216 |
|
205 | 217 | sign-osx-distros: |
206 | 218 | needs: [ eclipse-distro-build ] |
207 | 219 | runs-on: macos-15 |
208 | 220 | 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 |
209 | 226 | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 |
210 | 227 | with: |
211 | 228 | sparse-checkout: | |
@@ -295,11 +312,16 @@ jobs: |
295 | 312 | rm -rf *spring-tool-suite-4*macosx* |
296 | 313 |
|
297 | 314 | 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 ] |
300 | 316 | if: ${{ always() && inputs.build_type != 'snapshot' && contains(join(needs.*.result, ','), 'success')}} |
301 | 317 | runs-on: ubuntu-latest |
302 | 318 | 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 |
303 | 325 | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 |
304 | 326 | with: |
305 | 327 | sparse-checkout: | |
@@ -389,11 +411,16 @@ jobs: |
389 | 411 | }" |
390 | 412 |
|
391 | 413 | 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 ] |
394 | 415 | if: ${{ always() }} |
395 | 416 | runs-on: ubuntu-latest |
396 | 417 | 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 |
397 | 424 | - name: Remove Temp Build Artifacts from S3 |
398 | 425 | id: cleanup-s3-temp-storage |
399 | 426 | run: | |
|
0 commit comments