Skip to content

Commit

Permalink
Backport verification check changes
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Nov 4, 2024
1 parent b93ed84 commit 7956d19
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 26 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/verify-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout tycho code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: 'tycho'
- name: Checkout platform code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: 'platform'
path: 'aggregator'
submodules: 'recursive'
lfs: true
repository: 'eclipse-platform/eclipse.platform.releng.aggregator'
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: |
8
11
19
21
17
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-verify-platform-${{ hashFiles('**/pom.xml', '**/*.target') }}
key: ${{ runner.os }}-maven-verify-platform-t4-${{ hashFiles('**/pom.xml', '**/*.target') }}
restore-keys: |
${{ runner.os }}-maven-verify-platform-
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.2
maven-version: 3.9.9
- name: Build Tycho
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Run Platform Build
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
working-directory: 'platform'
working-directory: 'aggregator'
run: >-
mvn -U -V -e -B -ntp
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/verify-platform2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,40 @@ on:
- 'tycho-4.0.x'

jobs:
build:
build-individual-bundles:
runs-on: ubuntu-latest
steps:
- name: Checkout tycho code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: 'tycho'
- name: Checkout platform code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: 'platform'
submodules: 'recursive'
lfs: true
repository: 'eclipse-platform/eclipse.platform'
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: |
8
11
19
21
17
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-verify-platform-individual-${{ hashFiles('**/pom.xml', '**/*.target') }}
key: ${{ runner.os }}-maven-verify-platform-individual-t4-${{ hashFiles('**/pom.xml', '**/*.target') }}
restore-keys: |
${{ runner.os }}-maven-verify-platform-individual-
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.2
maven-version: 3.9.9
- name: Build Tycho
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
Expand All @@ -55,16 +54,13 @@ jobs:
-DskipTests
--file pom.xml
-T1C
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml
clean install
- name: Run Platform Build
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
env:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
with:
working-directory: 'platform'
run: >-
mvn
working-directory: 'platform'
run: >-
xvfb-run mvn
--batch-mode
-Pbuild-individual-bundles
-Pbree-libs
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/verify-platform3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This workflow will build a "Eclipse Platform SWT Bundles" using the eclipse.platform.swt repository as it contains platform specific codes
# For more information see: https://github.com/eclipse-platform/eclipse.platform.swt/

name: Verify Eclipse Platform SWT Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- 'tycho-4.0.x'

jobs:
build-swt:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: Linux, os: ubuntu-latest, native: gtk.linux.x86_64 }
- { name: Windows, os: windows-latest, native: win32.win32.x86_64 }
- { name: MacOS x86, os: macos-13, native: cocoa.macosx.x86_64 }
- { name: MacOS ARM, os: macos-latest, native: cocoa.macosx.aarch64 }
name: Verify ${{ matrix.config.name }}
steps:
- name: Checkout tycho code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: 'tycho'
- name: Checkout platform code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: 'swt'
submodules: 'recursive'
lfs: true
repository: 'eclipse-platform/eclipse.platform.swt'
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: |
11
21
17
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-verify-platform-swt-t4-${{ hashFiles('**/pom.xml', '**/*.target') }}
restore-keys: |
${{ runner.os }}-maven-verify-platform-swt-
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.9
- name: Build Tycho
working-directory: 'tycho'
run: >-
mvn -U -V -e -B -ntp
-DskipTests
--file pom.xml
-T1C
clean install
- name: Run Platform SWT Build
working-directory: 'swt'
shell: bash
run: >-
mvn
-ntp
--batch-mode
-Pbuild-individual-bundles
-Pbree-libs
-DskipTests
-Dtycho.version=$(mvn help:evaluate -f ../tycho -Dexpression=project.version -q -DforceStdout)
-T1C
clean verify

0 comments on commit 7956d19

Please sign in to comment.