-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check that builds (including tests) the 'build-individual-bundles'
- Loading branch information
Showing
2 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# This workflow will build a "Eclipse Platform Individual Bundles" using the eclipse.platform repository as it contains the largest set of inter-related bundles | ||
# For more information see: https://github.com/eclipse-platform/eclipse.platform | ||
|
||
name: Verify Eclipse Platform Individual Bundles Build | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout tycho code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'tycho' | ||
- name: Checkout platform code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'platform' | ||
submodules: 'recursive' | ||
lfs: true | ||
repository: 'eclipse-platform/eclipse.platform' | ||
fetch-depth: 0 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: | | ||
8 | ||
11 | ||
19 | ||
17 | ||
distribution: 'temurin' | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-verify-platform-individual-${{ hashFiles('**/pom.xml', '**/*.target') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven-verify-platform-individual- | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.6 | ||
- name: Build Tycho | ||
env: | ||
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} | ||
working-directory: 'tycho' | ||
run: >- | ||
mvn -U -V -e -B -ntp | ||
-DskipTests | ||
--file pom.xml | ||
-T1C | ||
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml | ||
clean install | ||
- name: Run Platform Build | ||
uses: GabrielBB/xvfb-action@v1 | ||
env: | ||
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} | ||
with: | ||
working-directory: 'platform' | ||
run: >- | ||
mvn | ||
--batch-mode | ||
--global-toolchains ${{ github.workspace }}/platform/.github/toolchains.xml | ||
-Pbuild-individual-bundles | ||
-Pbree-libs | ||
-Dtycho.version=4.0.0-SNAPSHOT | ||
-T1C | ||
clean verify |