Skip to content

Commit a32ac18

Browse files
committed
[GHA] VSCode snapshot builds
1 parent 83dfd2b commit a32ac18

File tree

8 files changed

+84
-10
lines changed

8 files changed

+84
-10
lines changed

.github/scripts/gen-vscode-link-bullet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ id=$1
22
label=$2
33
download_url_root=$3
44

5-
vsix_file=`aws s3 cp s3://$AWS_S3_BUCKET/snapshot/vscode-extensions/$id/ . --exclude "*" --include "*.vsix" --exclude "*/*" --dryrun | head -n 1`
5+
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$"`
66
if [ ! -z "${vsix_file}" ]; then
77
echo "<li>${label}: <a href=\"${download_url_root}/snapshot/vscode-extensions/${id}/${vsix_file}\">${vsix_file}</a></li>"
88
fi

.github/workflows/snapshot-all.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Snapshot - Eclipse LS Extensions
2+
3+
concurrency:
4+
group: snapshot-all
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- 'main'
12+
13+
jobs:
14+
15+
eclipse-ls-extensions:
16+
uses: ./.github/workflows/eclipse-ls-extensions-build.yml
17+
with:
18+
eclipse_profile: 'e431'
19+
build_type: 'snapshot'
20+
skip_tests: true
21+
secrets: inherit
22+
23+
e431-distro:
24+
needs: [ eclipse-ls-extensions ]
25+
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
26+
with:
27+
eclipse_profile: 'e431'
28+
build_type: 'snapshot'
29+
java_version: '17'
30+
secrets: inherit
31+
32+
e432-distro:
33+
needs: [ eclipse-ls-extensions ]
34+
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
35+
with:
36+
eclipse_profile: 'e432'
37+
build_type: 'snapshot'
38+
java_version: '21'
39+
secrets: inherit
40+
41+
e433-distro:
42+
needs: [ eclipse-ls-extensions ]
43+
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
44+
with:
45+
eclipse_profile: 'e433'
46+
build_type: 'snapshot'
47+
java_version: '21'
48+
secrets: inherit
49+
50+
vscode-spring-boot:
51+
uses: ./.github/workflows/snapshot-vscode-extension.yml
52+
with:
53+
extension-name: vscode-spring-boot
54+
secrets: inherit
55+
56+
vscode-concourse:
57+
uses: ./.github/workflows/snapshot-vscode-extension.yml
58+
with:
59+
extension-name: vscode-concourse
60+
secrets: inherit
61+

.github/workflows/snapshot-eclipse-ls-extensions-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ concurrency:
66

77
on:
88
workflow_dispatch:
9-
push:
10-
branches:
11-
- 'main'
9+
# push:
10+
# branches:
11+
# - 'main'
1212

1313
jobs:
1414
eclipse-ls-extensions:

.github/workflows/snapshot-vscode-extension.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
description: name of the extension, e.g. vscode-spring-cli
88
required: true
99
type: string
10+
workflow_call:
11+
inputs:
12+
extension-name:
13+
description: name of the extension, e.g. vscode-spring-cli
14+
required: true
15+
type: string
1016

1117
permissions:
1218
contents: write
@@ -51,8 +57,12 @@ jobs:
5157
run: |
5258
downloads_html="vscode-extensions-snippet.html"
5359
echo '<ul>' >> $downloads_html
54-
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-boot "Spring Boot Tools" $DOWNLOAD_URL_ROOT`
55-
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-concourse "Concourse" $DOWNLOAD_URL_ROOT`
60+
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-boot "Spring Boot Tools" $DOWNLOAD_URL_ROOT` >> $downloads_html
61+
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-concourse "Concourse Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
62+
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-bosh "Bosh Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
63+
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-manifest-yaml "CF Mnaifest Editor" $DOWNLOAD_URL_ROOT` >> $downloads_html
64+
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-cli "Spring CLI" $DOWNLOAD_URL_ROOT` >> $downloads_html
5665
echo '</ul>' >> $downloads_html
57-
cat ./$downloads_html
66+
cat ./$downloads_html
67+
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/STS4/vscode-extensions/ --no-progress
5868
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
set -e
3-
../mvnw -f ../pom.xml -pl bosh-language-server -am clean install
3+
../mvnw -B -f ../pom.xml -pl bosh-language-server -am clean install
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
set -e
3-
../mvnw -f ../pom.xml -pl concourse-language-server -am clean install
3+
../mvnw -B -f ../pom.xml -pl concourse-language-server -am clean install

headless-services/manifest-yaml-language-server/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -e
33

44
# Use maven to build fat jar of the language server
5-
../mvnw -f ../pom.xml -pl manifest-yaml-language-server -am clean install
5+
../mvnw -B -f ../pom.xml -pl manifest-yaml-language-server -am clean install
66

headless-services/spring-boot-language-server/build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ if command -v xvfb-run ; then
99
-f ../pom.xml \
1010
-pl $modules \
1111
-am \
12+
-B \
1213
clean install
1314
else
1415
../mvnw \
1516
-DtrimStackTrace=false \
1617
-f ../pom.xml \
1718
-pl $modules \
1819
-am \
20+
-B \
1921
clean install
2022
fi
2123
cd ../xml-ls-extension
@@ -24,4 +26,5 @@ cd ../xml-ls-extension
2426
-f ../pom.xml \
2527
-pl xml-ls-extension \
2628
-am \
29+
-B \
2730
clean install

0 commit comments

Comments
 (0)