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

Add native released run to PR workflow #894

Merged
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ jobs:
- name: Build
run: |
MAVEN_PROFILES="-Pframework,examples"
if [[ "${{ matrix.quarkus-version }}" = 1.* ]]; then
EXCLUDE_MODULES="-pl !examples/grpc"
MAVEN_PROFILES=$MAVEN_PROFILES
fi

if [[ "${{ matrix.quarkus-version }}" != current ]]; then
QUARKUS_VERSION="-Dquarkus.platform.version=${{ matrix.quarkus-version }}"
Expand Down Expand Up @@ -236,10 +232,6 @@ jobs:
run: tar -xzf maven-repo.tgz -C ~
- name: Build
run: |
if [[ "${{ matrix.quarkus-version }}" = 1.* ]]; then
EXCLUDE_MODULES="-pl !examples/grpc"
fi

if [[ "${{ matrix.quarkus-version }}" != current ]]; then
QUARKUS_VERSION="-Dquarkus.platform.version=${{ matrix.quarkus-version }}"
fi
Expand Down
86 changes: 77 additions & 9 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
java: [ 11 ]
steps:
- uses: actions/checkout@v4
- name: Reclaim Disk Space
run: .github/ci-prerequisites.sh
- name: Install required tools
run: sudo apt update && sudo apt install pigz
- name: Install JDK {{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand All @@ -19,7 +23,16 @@ jobs:
cache: 'maven'
- name: Build with Maven
run: |
mvn -V -B -s .github/mvn-settings.xml verify -Pframework,examples -Dvalidate-format -DskipTests -DskipITs
mvn -V -B -s .github/mvn-settings.xml clean install -Pframework,examples -Dvalidate-format -DskipTests -DskipITs
- name: Tar Maven Repo
shell: bash
run: tar -I 'pigz -9' -cf maven-repo-current-fw.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v3
with:
name: maven-repo-current-fw
path: maven-repo-current-fw.tgz
retention-days: 1
quarkus-main-build:
name: Quarkus main build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,16 +94,17 @@ jobs:
with:
helmfile-version: "v0.145.2"
install-helm: no
- name: Download Maven Repo
uses: actions/download-artifact@v3
with:
name: maven-repo-current-fw
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo-current-fw.tgz -C ~
- name: Build in JVM mode
run: |
if [[ "${{ matrix.quarkus-version }}" = 1.* ]]; then
EXCLUDE_MODULES="-pl !examples/grpc"
fi

if [[ "${{ matrix.quarkus-version }}" != current ]]; then
QUARKUS_VERSION="-Dquarkus.platform.version=${{ matrix.quarkus-version }}"
fi
mvn -B -fae -s .github/mvn-settings.xml clean install -Pframework,examples -Dvalidate-format $QUARKUS_VERSION $EXCLUDE_MODULES
mvn -B -fae -s .github/mvn-settings.xml clean install -Pexamples
- name: Zip Artifacts
run: |
zip -R artifacts-quarkus${{ matrix.quarkus-version }}-linux-jvm${{ matrix.java }}.zip '*-reports/*'
Expand Down Expand Up @@ -158,6 +172,60 @@ jobs:
with:
name: ci-artifacts
path: artifacts-latest-linux-jvm${{ matrix.java }}.zip
linux-build-native-released:
name: Daily - Linux - Native build - Released Version
runs-on: ubuntu-latest
needs: validate-format
strategy:
matrix:
quarkus-version: [ "current" ]
java: [ 17 ]
examples: [
'examples/pingpong,examples/restclient,examples/greetings,examples/blocking-reactive-model,examples/https,examples/grpc,examples/consul,examples/infinispan,examples/microprofile,examples/keycloak,examples/kafka,examples/kafka-registry,examples/kafka-streams',
'!examples/pingpong,!examples/restclient,!examples/greetings,!examples/blocking-reactive-model,!examples/https,!examples/grpc,!examples/consul,!examples/infinispan,!examples/microprofile,!examples/keycloak,!examples/kafka,!examples/kafka-registry,!examples/kafka-streams'
]
steps:
- uses: actions/checkout@v4
- name: Reclaim Disk Space
run: .github/ci-prerequisites.sh
- name: Install JDK {{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Install Helm client
uses: azure/setup-helm@v3
with:
version: v3.9.0
id: install-helm
- name: Setup helmfile
uses: mamezou-tech/[email protected]
with:
helmfile-version: "v0.145.2"
install-helm: no
- name: Download Maven Repo
uses: actions/download-artifact@v3
with:
name: maven-repo-current-fw
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo-current-fw.tgz -C ~
- name: Build
run: |
mvn -B -fae -s .github/mvn-settings.xml clean install -Pexamples,native -pl '${{ matrix.examples }}'
- name: Zip Artifacts
if: failure()
run: |
zip -R artifacts-native-${{ matrix.quarkus-version }}-${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: ci-artifacts
path: artifacts-native-${{ matrix.quarkus-version }}-${{ matrix.java }}.zip
windows-build-jvm-latest:
name: Windows - JVM build - Latest Version
runs-on: windows-latest
Expand Down