Skip to content

Commit

Permalink
Introduced matrix strategy for multiple OSes (#106)
Browse files Browse the repository at this point in the history
* Introduced matrix strategy for multiple OSes

* Simplied tests execution

* Reverted some prev changes

* Moved Windup build into the main job

* Re-order job's steps

* Provided releative path to settings.xml file

* Removed commented configurations

* actions/setup-java@v3

* actions/checkout@v3

* Switched to Java 'temurin' distribution
  • Loading branch information
mrizzi authored Oct 7, 2022
1 parent cc7f5d5 commit a948a8d
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/pr-build-jdk11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,33 @@ on:

jobs:

windup-build:
runs-on: ubuntu-latest
windup-quickstarts-pr-builder-jdk11:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v2.3.4
- name: Checkout windup repo
uses: actions/checkout@v3
with:
repository: windup/windup
- name: Set up JDK 11
uses: actions/setup-java@v2
path: windup
- name: Checkout windup repo
uses: actions/checkout@v3
with:
java-version: '11'
distribution: 'adopt'
java-package: jdk
cache: 'maven'
- name: Build on JDK 11
run: mvn -B clean install -DskipTests

windup-quickstarts-pr-builder-jdk11:
runs-on: ubuntu-latest
needs: [windup-build]
steps:
- uses: actions/[email protected]
path: windup-quickstarts
- 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: Build Windup on JDK 11
run: mvn -B clean install -DskipTests -f windup
- name: Build on JDK 11
run: mvn -B clean install -s settings.xml -DskipTests && mvn -B clean install -s settings.xml
run: mvn -B clean install -s ./windup-quickstarts/settings.xml -DskipTests -f windup-quickstarts && mvn -B clean install -s ./windup-quickstarts/settings.xml -f windup-quickstarts



0 comments on commit a948a8d

Please sign in to comment.