Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restored previous GH jobs with some debug info #115

Draft
wants to merge 2 commits into
base: releases/6.1.z
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 101 additions & 98 deletions .github/workflows/pull_request_push_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,121 +11,124 @@ on:
- 'releases/**'

jobs:
# windup-build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# with:
# repository: windup/windup
# 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
# key: maven-windup-build-${{ github.sha }}
# - name: Build Windup on JDK 11
# run: mvn -B clean install -DskipTests -Dmaven.repo.local=.m2
#
# 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
# key: maven-windup-rulesets-build-${{ github.sha }}
# restore-keys: |
# maven-windup-build-${{ github.sha }}
# - name: Build Windup Rulesets
# run: mvn -B clean install -DskipTests -Dmaven.repo.local=.m2
#
# windup-cli-build:
# strategy:
# fail-fast: false
# matrix:
# jdk-distribution: [ temurin ]
# os: [ubuntu-latest, windows-latest, macos-latest]
# runs-on: ${{ matrix.os }}
# needs: [windup-rulesets-build]
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: ${{ matrix.jdk-distribution }}
# - name: Cache local Maven repository
# uses: actions/cache@v3
# with:
# path: .m2
# key: maven-windup-cli-build-${{ github.sha }}
# enableCrossOsArchive: true
# restore-keys: |
# maven-windup-rulesets-build-${{ github.sha }}
# - name: Set up Maven
# uses: stCarolas/setup-maven@v4.5
# with:
# maven-version: 3.8.7
# - name: Maven build
# run: mvn clean install -DskipTests -B -s build/settings.xml -Dmaven.repo.local=.m2

windup-cli-build:
strategy:
fail-fast: false
matrix:
jdk-distribution: [ temurin ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
windup-build:
runs-on: ubuntu-latest
steps:
- name: Checkout windup project
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup
ref: ${{ github.base_ref }}
path: windup
- name: Checkout windup-rulesets project
- 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
key: maven-windup-build-${{ github.sha }}
- name: Build Windup on JDK 11
run: mvn -B clean install -DskipTests -Dmaven.repo.local=.m2

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 }}
path: windup-rulesets
- name: Checkout PR code
uses: actions/checkout@v3
- 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: windup-distribution
path: .m2
key: maven-windup-rulesets-build-${{ github.sha }}
restore-keys: |
maven-windup-build-${{ github.sha }}
- name: Build Windup Rulesets
run: mvn -B clean install -DskipTests -Dmaven.repo.local=.m2

windup-cli-build:
strategy:
fail-fast: false
matrix:
jdk-distribution: [ temurin ]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
needs: [windup-rulesets-build]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: ${{ matrix.jdk-distribution }}
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: .m2
key: maven-windup-cli-build-${{ github.sha }}
enableCrossOsArchive: true
restore-keys: |
maven-windup-rulesets-build-${{ github.sha }}
- name: some debugging
run: find ./.m2
shell: bash
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.7
- name: Build Windup dependencies
run: |
mvn install -DskipTests -f windup
mvn install -DskipTests -f windup-rulesets
- name: Maven build
run: mvn clean install -DskipTests -B -s windup-distribution/build/settings.xml -f windup-distribution
run: mvn clean install -DskipTests -B -s build/settings.xml -D"maven.repo.local=.m2"

# windup-cli-build:
# strategy:
# fail-fast: false
# matrix:
# jdk-distribution: [ temurin ]
# os: [ ubuntu-latest, windows-latest, macos-latest ]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout windup project
# uses: actions/checkout@v3
# with:
# repository: windup/windup
# ref: ${{ github.base_ref }}
# path: windup
# - name: Checkout windup-rulesets project
# uses: actions/checkout@v3
# with:
# repository: windup/windup-rulesets
# ref: ${{ github.base_ref }}
# path: windup-rulesets
# - name: Checkout PR code
# uses: actions/checkout@v3
# with:
# path: windup-distribution
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: ${{ matrix.jdk-distribution }}
# cache: 'maven'
# - name: Set up Maven
# uses: stCarolas/setup-maven@v4.5
# with:
# maven-version: 3.8.7
# - name: Build Windup dependencies
# run: |
# mvn install -DskipTests -f windup
# mvn install -DskipTests -f windup-rulesets
# - name: Maven build
# run: mvn clean install -DskipTests -B -s windup-distribution/build/settings.xml -f windup-distribution