Skip to content

Commit

Permalink
Enhance GH Jobs to build all Windup dependencies (windup#887)
Browse files Browse the repository at this point in the history
* Enhance GH Jobs to build all Windup dependencies

* Added 'actions/cache' step to manage Maven cache

* Update pr_build_jdk11.yaml

---------

Co-authored-by: Carlos E. Feria Vila <carlosthe19916@gmail.com>
  • Loading branch information
mrizzi and carlosthe19916 authored Feb 21, 2023
1 parent 411dd61 commit 8a053e0
Showing 1 changed file with 69 additions and 14 deletions.
83 changes: 69 additions & 14 deletions .github/workflows/pr_build_jdk11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,93 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
with:
repository: windup/windup
ref: ${{ github.base_ref }}
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
java-package: jdk
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-build-${{ github.sha }}
- name: Build Windup on JDK 11
run: mvn -B clean install -DskipTests

windup-rulesets-build:
runs-on: ubuntu-latest
needs: [windup-build]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
ref: ${{ github.base_ref }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-rulesets-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-build-${{ github.sha }}
- name: Build Windup Rulesets
run: mvn -B clean install -DskipTests

windup-cli-build:
runs-on: ubuntu-latest
needs: [windup-rulesets-build]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-distribution
ref: ${{ github.base_ref }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-cli-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-rulesets-build-${{ github.sha }}
- name: Build on JDK 11
run: mvn -B clean install -DskipTests

windup-web-build:
runs-on: ubuntu-18.04
needs: [windup-build]
runs-on: ubuntu-latest
needs: [windup-cli-build]
env:
OPENSSL_CONF: /etc/ssl
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
java-package: jdk
cache: 'maven'
- uses: actions/setup-node@v2
- name: Cache local Maven repository
uses: actions/cache@v3
with:
node-version: '12'
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-web-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-cli-build-${{ github.sha }}
- name: Build
run: mvn clean install -U -s settings.xml


0 comments on commit 8a053e0

Please sign in to comment.