[GHA] VSCode snapshot builds

This commit is contained in:
aboyko
2024-07-12 21:16:57 -04:00
parent 83dfd2bbd7
commit a32ac18ea5
8 changed files with 84 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ id=$1
label=$2
download_url_root=$3
vsix_file=`aws s3 cp s3://$AWS_S3_BUCKET/snapshot/vscode-extensions/$id/ . --exclude "*" --include "*.vsix" --exclude "*/*" --dryrun | head -n 1`
vsix_file=`aws s3 ls s3://$AWS_S3_BUCKET/snapshot/vscode-extensions/$id/ | awk '{$1=$2=$3=""; print $0}' | awk '{$1=$1};1' | grep "\.vsix$"`
if [ ! -z "${vsix_file}" ]; then
echo "<li>${label}: <a href=\"${download_url_root}/snapshot/vscode-extensions/${id}/${vsix_file}\">${vsix_file}</a></li>"
fi

61
.github/workflows/snapshot-all.yml vendored Normal file
View File

@@ -0,0 +1,61 @@
name: Snapshot - Eclipse LS Extensions
concurrency:
group: snapshot-all
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
eclipse-ls-extensions:
uses: ./.github/workflows/eclipse-ls-extensions-build.yml
with:
eclipse_profile: 'e431'
build_type: 'snapshot'
skip_tests: true
secrets: inherit
e431-distro:
needs: [ eclipse-ls-extensions ]
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e431'
build_type: 'snapshot'
java_version: '17'
secrets: inherit
e432-distro:
needs: [ eclipse-ls-extensions ]
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e432'
build_type: 'snapshot'
java_version: '21'
secrets: inherit
e433-distro:
needs: [ eclipse-ls-extensions ]
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e433'
build_type: 'snapshot'
java_version: '21'
secrets: inherit
vscode-spring-boot:
uses: ./.github/workflows/snapshot-vscode-extension.yml
with:
extension-name: vscode-spring-boot
secrets: inherit
vscode-concourse:
uses: ./.github/workflows/snapshot-vscode-extension.yml
with:
extension-name: vscode-concourse
secrets: inherit

View File

@@ -6,9 +6,9 @@ concurrency:
on:
workflow_dispatch:
push:
branches:
- 'main'
# push:
# branches:
# - 'main'
jobs:
eclipse-ls-extensions:

View File

@@ -7,6 +7,12 @@ on:
description: name of the extension, e.g. vscode-spring-cli
required: true
type: string
workflow_call:
inputs:
extension-name:
description: name of the extension, e.g. vscode-spring-cli
required: true
type: string
permissions:
contents: write
@@ -51,8 +57,12 @@ jobs:
run: |
downloads_html="vscode-extensions-snippet.html"
echo '<ul>' >> $downloads_html
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-boot "Spring Boot Tools" $DOWNLOAD_URL_ROOT`
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-concourse "Concourse" $DOWNLOAD_URL_ROOT`
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-boot "Spring Boot Tools" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-concourse "Concourse Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-bosh "Bosh Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-manifest-yaml "CF Mnaifest Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-cli "Spring CLI" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo '</ul>' >> $downloads_html
cat ./$downloads_html
cat ./$downloads_html
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/STS4/vscode-extensions/ --no-progress

View File

@@ -1,3 +1,3 @@
#!/bin/bash
set -e
../mvnw -f ../pom.xml -pl bosh-language-server -am clean install
../mvnw -B -f ../pom.xml -pl bosh-language-server -am clean install

View File

@@ -1,3 +1,3 @@
#!/bin/bash
set -e
../mvnw -f ../pom.xml -pl concourse-language-server -am clean install
../mvnw -B -f ../pom.xml -pl concourse-language-server -am clean install

View File

@@ -2,5 +2,5 @@
set -e
# Use maven to build fat jar of the language server
../mvnw -f ../pom.xml -pl manifest-yaml-language-server -am clean install
../mvnw -B -f ../pom.xml -pl manifest-yaml-language-server -am clean install

View File

@@ -9,6 +9,7 @@ if command -v xvfb-run ; then
-f ../pom.xml \
-pl $modules \
-am \
-B \
clean install
else
../mvnw \
@@ -16,6 +17,7 @@ else
-f ../pom.xml \
-pl $modules \
-am \
-B \
clean install
fi
cd ../xml-ls-extension
@@ -24,4 +26,5 @@ cd ../xml-ls-extension
-f ../pom.xml \
-pl xml-ls-extension \
-am \
-B \
clean install