From 80a88b16aff0ea7f2aaca1bfdb57cf30ef8b6cb1 Mon Sep 17 00:00:00 2001 From: aboyko Date: Thu, 20 Jul 2023 02:25:14 -0400 Subject: [PATCH] GHA: build on every push. Remove unnecessary files --- .../macos-notarize-via-http-service.sh | 0 .../workflows/eclipse-ls-extensions-build.yml | 10 ++-- .../snapshot-e427-eclipse-distro-build.yml | 4 +- .../snapshot-e428-eclipse-distro-build.yml | 4 +- .../snapshot-e429-eclipse-distro-build.yml | 4 +- .../entitlements.plist | 18 ------- ...tool-suite-4-dmg-config-e4.27-aarch64.json | 10 ---- ...ing-tool-suite-4-dmg-config-e4.27-x86.json | 10 ---- .../entitlements.plist | 18 ------- .../macos-notarize.sh | 46 ---------------- ...tool-suite-4-dmg-config-e4.28-aarch64.json | 10 ---- ...ing-tool-suite-4-dmg-config-e4.28-x86.json | 10 ---- .../entitlements.plist | 18 ------- .../macos-notarize.sh | 46 ---------------- .../osx-distro.sh | 53 ------------------- ...tool-suite-4-dmg-config-e4.29-aarch64.json | 10 ---- ...ing-tool-suite-4-dmg-config-e4.29-x86.json | 10 ---- 17 files changed, 11 insertions(+), 270 deletions(-) rename eclipse-distribution/org.springframework.boot.ide.product.e427/macos-notarize.sh => .github/scripts/macos-notarize-via-http-service.sh (100%) delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e427/entitlements.plist delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-aarch64.json delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-x86.json delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e428/entitlements.plist delete mode 100755 eclipse-distribution/org.springframework.boot.ide.product.e428/macos-notarize.sh delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-aarch64.json delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-x86.json delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e429/entitlements.plist delete mode 100755 eclipse-distribution/org.springframework.boot.ide.product.e429/macos-notarize.sh delete mode 100755 eclipse-distribution/org.springframework.boot.ide.product.e429/osx-distro.sh delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-aarch64.json delete mode 100644 eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-x86.json diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e427/macos-notarize.sh b/.github/scripts/macos-notarize-via-http-service.sh similarity index 100% rename from eclipse-distribution/org.springframework.boot.ide.product.e427/macos-notarize.sh rename to .github/scripts/macos-notarize-via-http-service.sh diff --git a/.github/workflows/eclipse-ls-extensions-build.yml b/.github/workflows/eclipse-ls-extensions-build.yml index b2670b41e..72e7d12d2 100644 --- a/.github/workflows/eclipse-ls-extensions-build.yml +++ b/.github/workflows/eclipse-ls-extensions-build.yml @@ -1,12 +1,12 @@ name: Eclipse LS Extensions Snapshot Build # configure manual trigger -on: - workflow_dispatch: #on: -# push: -# branches: -# - 'main' +# workflow_dispatch: +on: + push: + branches: + - 'main' jobs: diff --git a/.github/workflows/snapshot-e427-eclipse-distro-build.yml b/.github/workflows/snapshot-e427-eclipse-distro-build.yml index d640819a1..7fff3c1aa 100644 --- a/.github/workflows/snapshot-e427-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e427-eclipse-distro-build.yml @@ -12,11 +12,11 @@ on: types: [completed] branches: - "main" - workflow_dispatch: +# workflow_dispatch: jobs: e427-distro: -# if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml with: eclipse_profile: 'e427' diff --git a/.github/workflows/snapshot-e428-eclipse-distro-build.yml b/.github/workflows/snapshot-e428-eclipse-distro-build.yml index fa9595e9d..755021373 100644 --- a/.github/workflows/snapshot-e428-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e428-eclipse-distro-build.yml @@ -12,11 +12,11 @@ on: types: [completed] branches: - "main" - workflow_dispatch: +# workflow_dispatch: jobs: e428-distro: -# if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml with: eclipse_profile: 'e428' diff --git a/.github/workflows/snapshot-e429-eclipse-distro-build.yml b/.github/workflows/snapshot-e429-eclipse-distro-build.yml index 9f72d0780..3cdd18a8a 100644 --- a/.github/workflows/snapshot-e429-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e429-eclipse-distro-build.yml @@ -10,11 +10,11 @@ on: types: [completed] branches: - "main" - workflow_dispatch: +# workflow_dispatch: jobs: e429-distro: -# if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml with: eclipse_profile: 'e429' diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e427/entitlements.plist b/eclipse-distribution/org.springframework.boot.ide.product.e427/entitlements.plist deleted file mode 100644 index 6a297d495..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e427/entitlements.plist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.security.cs.allow-jit - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-executable-page-protection - - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.cs.disable-library-validation - - com.apple.security.cs.debugger - - - diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-aarch64.json b/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-aarch64.json deleted file mode 100644 index ba3c1e32b..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-aarch64.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/aarch64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -} diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-x86.json b/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-x86.json deleted file mode 100644 index c86b0023f..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e427/spring-tool-suite-4-dmg-config-e4.27-x86.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/x86_64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -} diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e428/entitlements.plist b/eclipse-distribution/org.springframework.boot.ide.product.e428/entitlements.plist deleted file mode 100644 index 6a297d495..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e428/entitlements.plist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.security.cs.allow-jit - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-executable-page-protection - - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.cs.disable-library-validation - - com.apple.security.cs.debugger - - - diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e428/macos-notarize.sh b/eclipse-distribution/org.springframework.boot.ide.product.e428/macos-notarize.sh deleted file mode 100755 index 448edb094..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e428/macos-notarize.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -DMG=$1 -NOTARIZE_SERVICE_URL=$2 - -echo "Notarize DMG" -echo ${DMG} - -RESPONSE=\ -$(curl -s -X POST \ - -F file=@${DMG} \ - -F 'options={"primaryBundleId": "SpringTools4", "staple": true};type=application/json' \ - ${NOTARIZE_SERVICE_URL}/macos-notarization-service/notarize) - -echo "Notarization request submitted" -echo ${RESPONSE} - -UUID=$(echo ${RESPONSE} | jq -r '.uuid') - -STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') - -echo "Status after submitting" -echo ${STATUS} - -while [[ ${STATUS} == 'IN_PROGRESS' ]]; do - sleep 60 - RESPONSE=$(curl -s ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/status) - STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') - - echo "Waiting for status to change" - echo ${RESPONSE} - echo ${STATUS} -done - -echo "Status is not in progress anymore" -echo ${RESPONSE} -echo ${STATUS} - -if [[ ${STATUS} != 'COMPLETE' ]]; then - echo "Notarization failed: ${RESPONSE}" - exit 1 -fi - -mv "${DMG}" "${DMG}-unnotarized" - -curl -o ${DMG} -J ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/download diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-aarch64.json b/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-aarch64.json deleted file mode 100644 index ba3c1e32b..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-aarch64.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/aarch64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -} diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-x86.json b/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-x86.json deleted file mode 100644 index c86b0023f..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e428/spring-tool-suite-4-dmg-config-e4.28-x86.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/x86_64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -} diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e429/entitlements.plist b/eclipse-distribution/org.springframework.boot.ide.product.e429/entitlements.plist deleted file mode 100644 index 6a297d495..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e429/entitlements.plist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.security.cs.allow-jit - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-executable-page-protection - - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.cs.disable-library-validation - - com.apple.security.cs.debugger - - - diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e429/macos-notarize.sh b/eclipse-distribution/org.springframework.boot.ide.product.e429/macos-notarize.sh deleted file mode 100755 index 448edb094..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e429/macos-notarize.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -DMG=$1 -NOTARIZE_SERVICE_URL=$2 - -echo "Notarize DMG" -echo ${DMG} - -RESPONSE=\ -$(curl -s -X POST \ - -F file=@${DMG} \ - -F 'options={"primaryBundleId": "SpringTools4", "staple": true};type=application/json' \ - ${NOTARIZE_SERVICE_URL}/macos-notarization-service/notarize) - -echo "Notarization request submitted" -echo ${RESPONSE} - -UUID=$(echo ${RESPONSE} | jq -r '.uuid') - -STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') - -echo "Status after submitting" -echo ${STATUS} - -while [[ ${STATUS} == 'IN_PROGRESS' ]]; do - sleep 60 - RESPONSE=$(curl -s ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/status) - STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') - - echo "Waiting for status to change" - echo ${RESPONSE} - echo ${STATUS} -done - -echo "Status is not in progress anymore" -echo ${RESPONSE} -echo ${STATUS} - -if [[ ${STATUS} != 'COMPLETE' ]]; then - echo "Notarization failed: ${RESPONSE}" - exit 1 -fi - -mv "${DMG}" "${DMG}-unnotarized" - -curl -o ${DMG} -J ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/download diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e429/osx-distro.sh b/eclipse-distribution/org.springframework.boot.ide.product.e429/osx-distro.sh deleted file mode 100755 index a3b2cae01..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e429/osx-distro.sh +++ /dev/null @@ -1,53 +0,0 @@ -set -e - -file=$1 -filename="$(basename -- $file)" -dir="$(dirname "$file")" - -echo "****************************************************************" -echo "*** Processing : ${file}" -echo "****************************************************************" -destination_folder_name=extracted_${filename} -echo "Extracting archive ${filename} to ${dir}/${destination_folder_name}" -mkdir ${dir}/${destination_folder_name} -tar -zxf $file --directory ${dir}/${destination_folder_name} -echo "Successfully extracted ${filename}" -echo "About to sign OSX .app file: ${dir}/${destination_folder_name}/SpringToolSuite4.app" -cd ${dir}/${destination_folder_name} -echo "Generating dmg-config.json..." -echo '{' >> dmg-config.json -echo ' "title": "Spring Tool Suite 4",' >> dmg-config.json -echo ' "icon": "/Users/aboyko/git/sts4/eclipse-distribution/org.springframework.boot.ide.branding/sts4.icns",' >> dmg-config.json -echo ' "contents": [' >> dmg-config.json -echo ' { "x": 192, "y": 100, "type": "file", "path": "./SpringToolSuite4.app" },' >> dmg-config.json -echo ' { "x": 448, "y": 100, "type": "link", "path": "/Applications" },' >> dmg-config.json -echo ' { "x": 1000, "y": 2000, "type": "file", "path": "/Users/aboyko/git/sts4/eclipse-distribution/org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" }' >> dmg-config.json -echo ' ],' >> dmg-config.json -echo ' "format": "UDZO"' >> dmg-config.json -echo '}' >> dmg-config.json -cat ./dmg-config.json -dmg_filename=${filename%.*.*}.dmg -appdmg ./dmg-config.json ../${dmg_filename} -cd .. -rm -rf ./${destination_folder_name} - -echo "Checksums $dmg_filename" -(shasum -a 256 $dmg_filename > ${dmg_filename}.sha256 \ -&& md5 $dmg_filename > ${dmg_filename}.md5) & -wait -echo "Completed" -#rm -f $filename -#zip -r -q ../$file . -#cd .. -#echo "Successfully zipped ${destination_folder_name} into ${file}" -#java -jar $self_extr_jar $file -#echo "Remove temporary ${destination_folder_name}" -#rm -rf ./${destination_folder_name} -# -#echo "Creating checksums sha-256 and md5 for ${file}" -#shasum -a 256 $file > ${file}.sha256 -#md5 $file > ${file}.md5 -#self_jar_file=${file%.*}.self-extracting.jar -#echo "Creating checksums sha-256 and md5 for ${self_jar_file}" -#shasum -a 256 $self_jar_file > ${self_jar_file}.sha256 -#md5 $self_jar_file > ${self_jar_file}.md5 \ No newline at end of file diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-aarch64.json b/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-aarch64.json deleted file mode 100644 index ba3c1e32b..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-aarch64.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/aarch64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -} diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-x86.json b/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-x86.json deleted file mode 100644 index c86b0023f..000000000 --- a/eclipse-distribution/org.springframework.boot.ide.product.e429/spring-tool-suite-4-dmg-config-e4.29-x86.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "title": "Spring Tool Suite 4", - "icon": "../org.springframework.boot.ide.branding/sts4.icns", - "contents": [ - { "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide.branding.sts4/macosx/cocoa/x86_64/SpringToolSuite4.app" }, - { "x": 448, "y": 100, "type": "link", "path": "/Applications" }, - { "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts4.icns", "name": ".VolumeIcon.icns" } - ], - "format": "UDZO" -}