From c16be395257e248dd4d272d15d63c7f2e0fd1f66 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 27 Dec 2024 13:45:44 -0500 Subject: [PATCH] Disable Win Eclipse distro build temporarily --- .../gh-hosted-eclipse-distro-build.yml | 114 +++++++++--------- eclipse-language-servers/local-build.sh | 2 +- 2 files changed, 60 insertions(+), 56 deletions(-) diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml index 87a89703c..3c5ee1708 100644 --- a/.github/workflows/gh-hosted-eclipse-distro-build.yml +++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml @@ -150,57 +150,57 @@ jobs: p2_path: ${{ steps.s3-paths.outputs.p2_path }} version: ${{ steps.project-version.outputs.version }} - sign-win-distros: - needs: [ eclipse-distro-build ] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - with: - sparse-checkout: | - .github - - name: Download Win Zips from S3 for Signing - run: | - rm -f spring-tool-suite-4*win*.zip* - rm -f spring-tool-suite-4*win*.self-extracting.jar* - ls - 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 - - name: Sign EXE within zip files - id: sign - run: | - files=`ls spring-tool-suite-4*win*.zip` - for file in $files - do - ${{ 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 }} & - done - FAIL=0 - for job in `jobs -p` - do - wait $job || let "FAIL+=1" - done - if [ "$FAIL" == "0" ]; - then - echo "Done signing EXE files" - else - echo "Failed signing one or more EXE files" - exit 1 - fi - - name: Update Win zip/jar on S3 - id: update-s3 - run: | - dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }} - echo "Processing S3 update..." - ls spring-tool-suite-4*win* - echo "Removing old win zip and self extracting jar files from S3..." - 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 "*/*" - echo "Uploading new win zip and self extracting jar files to S3..." - 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 - - name: Update Nightly Distro Downloads page - if: ${{ inputs.build_type == 'snapshot' }} - run: | - dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }} - eclipse_profile=${{ inputs.eclipse_profile }} - eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2} - ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT +# sign-win-distros: +# needs: [ eclipse-distro-build ] +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 +# with: +# sparse-checkout: | +# .github +# - name: Download Win Zips from S3 for Signing +# run: | +# rm -f spring-tool-suite-4*win*.zip* +# rm -f spring-tool-suite-4*win*.self-extracting.jar* +# ls +# 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 +# - name: Sign EXE within zip files +# id: sign +# run: | +# files=`ls spring-tool-suite-4*win*.zip` +# for file in $files +# do +# ${{ 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 }} & +# done +# FAIL=0 +# for job in `jobs -p` +# do +# wait $job || let "FAIL+=1" +# done +# if [ "$FAIL" == "0" ]; +# then +# echo "Done signing EXE files" +# else +# echo "Failed signing one or more EXE files" +# exit 1 +# fi +# - name: Update Win zip/jar on S3 +# id: update-s3 +# run: | +# dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }} +# echo "Processing S3 update..." +# ls spring-tool-suite-4*win* +# echo "Removing old win zip and self extracting jar files from S3..." +# 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 "*/*" +# echo "Uploading new win zip and self extracting jar files to S3..." +# 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 +# - name: Update Nightly Distro Downloads page +# if: ${{ inputs.build_type == 'snapshot' }} +# run: | +# dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }} +# eclipse_profile=${{ inputs.eclipse_profile }} +# eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2} +# ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT sign-osx-distros: needs: [ eclipse-distro-build ] @@ -295,7 +295,8 @@ jobs: rm -rf *spring-tool-suite-4*macosx* purge_cache: - needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] +# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] + needs: [ eclipse-distro-build, sign-osx-distros ] if: ${{ always() && inputs.build_type != 'snapshot' && contains(join(needs.*.result, ','), 'success')}} runs-on: ubuntu-latest steps: @@ -320,7 +321,8 @@ jobs: cloudflare_cache_token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} gchat-message: - needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] +# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] + needs: [ eclipse-distro-build, sign-osx-distros ] if: ${{ inputs.build_type == 'release' }} name: Send GChat message runs-on: ubuntu-latest @@ -387,7 +389,8 @@ jobs: }" cleanup: - needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] +# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros ] + needs: [ eclipse-distro-build, sign-osx-distros ] if: ${{ always() }} runs-on: ubuntu-latest steps: @@ -397,7 +400,8 @@ jobs: aws s3 rm s3://$AWS_S3_BUCKET/sts4-distro-ci-temp --recursive --exclude "*" --include "${{ needs.eclipse-distro-build.outputs.id }}/*" notify-failure: - needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros, cleanup, purge_cache ] +# needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros, cleanup, purge_cache ] + needs: [ eclipse-distro-build, sign-osx-distros, cleanup, purge_cache ] if: ${{ always() && contains(needs.*.result, 'failure') }} uses: ./.github/workflows/notify-failed.yml with: diff --git a/eclipse-language-servers/local-build.sh b/eclipse-language-servers/local-build.sh index f4b3b4f36..5b2d1f583 100755 --- a/eclipse-language-servers/local-build.sh +++ b/eclipse-language-servers/local-build.sh @@ -5,4 +5,4 @@ cd ../headless-services ./mvnw clean install -Dmaven.test.skip=true cd $workdir -./mvnw -Psnapshot -Pe432 clean install -Dmaven.test.skip=true +./mvnw -Psnapshot -Pe433 clean install -Dmaven.test.skip=true