GHA: make eclipse ls extensions workflow re-usable

This commit is contained in:
aboyko
2023-07-20 11:56:10 -04:00
parent 3fb358bccc
commit 1de857a339
5 changed files with 42 additions and 14 deletions

View File

@@ -1,12 +1,21 @@
name: Eclipse LS Extensions Snapshot Build
name: Eclipse LS Extensions Build
# configure manual trigger
#on:
# workflow_dispatch:
on:
push:
branches:
- 'main'
workflow_call:
inputs:
build_type:
description: Build type such as 'snapshot', 'milestone' or 'release'
required: true
default: 'snapshot'
type: string
ref:
description: Git branch, tag, commit hash
required: false
default: 'main'
type: string
jobs:
@@ -49,15 +58,15 @@ jobs:
run: |
cd eclipse-language-servers
if command -v xvfb-run ; then
xvfb-run ./mvnw --batch-mode clean deploy -Pe428 -Psnapshot -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
xvfb-run ./mvnw --batch-mode clean deploy -Pe428 -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
else
./mvnw --batch-mode clean deploy -Pe428 -Psnapshot -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
./mvnw --batch-mode clean deploy -Pe428 -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
fi
- name: Verify Eclipse LS Extensions on e429
run: |
cd eclipse-language-servers
if command -v xvfb-run ; then
xvfb-run ./mvnw --batch-mode clean package -Pe429 -Psnapshot -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
xvfb-run ./mvnw --batch-mode clean package -Pe429 -P${{ inputs.build_type }} -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
else
./mvnw --batch-mode clean package -Pe429 -Psnapshot -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
./mvnw --batch-mode clean package -Pe429 -P${{ inputs.build_type }} -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
fi

View File

@@ -1,14 +1,14 @@
name: Snapshot - 4.27 Eclipse STS Distribution Build
concurrency:
group: e427
group: e427-snapshot
cancel-in-progress: true
#on:
# workflow_dispatch:
on:
workflow_run:
workflows: ["Eclipse LS Extensions Snapshot Build"]
workflows: ["Snapshot - Eclipse LS Extensions"]
types: [completed]
branches:
- "main"

View File

@@ -1,14 +1,14 @@
name: Snapshot - 4.28 Eclipse STS Distribution Build
concurrency:
group: e428
group: e428-snapshot
cancel-in-progress: true
#on:
# workflow_dispatch:
on:
workflow_run:
workflows: ["Eclipse LS Extensions Snapshot Build"]
workflows: ["Snapshot - Eclipse LS Extensions"]
types: [completed]
branches:
- "main"

View File

@@ -1,12 +1,12 @@
name: Snapshot - 4.29 Eclipse STS Distribution Build
concurrency:
group: e429
group: e429-snapshot
cancel-in-progress: true
on:
workflow_run:
workflows: ["Eclipse LS Extensions Snapshot Build"]
workflows: ["Snapshot - Eclipse LS Extensions"]
types: [completed]
branches:
- "main"

View File

@@ -0,0 +1,19 @@
name: Snapshot - Eclipse LS Extensions
concurrency:
group: eclipse-ls-extension-snapshot
cancel-in-progress: true
#on:
# workflow_dispatch:
on:
push:
branches:
- 'main'
jobs:
eclipse-ls-extensions:
uses: ./.github/workflows/eclipse-ls-extensions-build.yml
with:
build_type: 'snapshot'
secrets: inherit