Skip to content

Release 1.3.0.Beta25 #1419

Release 1.3.0.Beta25

Release 1.3.0.Beta25 #1419

Workflow file for this run

name: "PR"
on:
- pull_request
jobs:
validate-format:
name: Validate format
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11 ]
steps:
- uses: actions/checkout@v3
- name: Install JDK {{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Build with Maven
run: |
mvn -V -B -s .github/mvn-settings.xml verify -Pframework,examples -Dvalidate-format -DskipTests -DskipITs
quarkus-main-build:
name: Quarkus main build
runs-on: ubuntu-latest
needs: validate-format
strategy:
matrix:
java: [ 11 ]
steps:
- uses: actions/checkout@v3
- 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:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Build Quarkus main
run: |
git clone https://github.com/quarkusio/quarkus.git && cd quarkus && ./mvnw -B -s .github/mvn-settings.xml clean install -Dquickly -Dno-test-modules -Prelocations
- name: Tar Maven Repo
shell: bash
run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v3
with:
name: maven-repo
path: maven-repo.tgz
retention-days: 1
linux-build-jvm-released:
name: Linux - JVM build - Released Versions
runs-on: ubuntu-latest
needs: validate-format
strategy:
matrix:
quarkus-version: ["current"]
java: [ 17 ]
steps:
- uses: actions/checkout@v3
- 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
- name: Setup helmfile
uses: mamezou-tech/[email protected]
with:
helmfile-version: "v0.145.2"
install-helm: no
- 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
- name: Zip Artifacts
run: |
zip -R artifacts-quarkus${{ matrix.quarkus-version }}-linux-jvm${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: ci-artifacts
path: artifacts-quarkus${{ matrix.quarkus-version }}-linux-jvm${{ matrix.java }}.zip
linux-build-jvm-latest:
name: Linux - JVM build - Latest Version
runs-on: ubuntu-latest
needs: quarkus-main-build
strategy:
matrix:
quarkus-version: ["999-SNAPSHOT"]
java: [ 17 ]
steps:
- uses: actions/checkout@v3
- 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
- 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
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Build Quarkus CLI
run: |
git clone https://github.com/quarkusio/quarkus.git && cd quarkus/devtools/cli && mvn -B -s ../../../.github/mvn-settings.xml clean install -Dquickly -Dno-test-modules -Prelocations
- name: Install Quarkus CLI
run: |
cat <<EOF > ./quarkus-dev-cli
#!/bin/bash
java -jar $PWD/quarkus/devtools/cli/target/quarkus-cli-999-SNAPSHOT-runner.jar "\$@"
EOF
chmod +x ./quarkus-dev-cli
./quarkus-dev-cli version
- name: Build in JVM mode
run: |
mvn -B -fae -s .github/mvn-settings.xml clean install -Pframework,examples,extensions -Drun-cli-tests -Dts.quarkus.cli.cmd="${PWD}/quarkus-dev-cli" -Dquarkus.platform.version="${{ matrix.quarkus-version }}"
- name: Zip Artifacts
run: |
zip -R artifacts-latest-linux-jvm${{ matrix.java }}.zip '*-reports/*'
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: ci-artifacts
path: artifacts-latest-linux-jvm${{ matrix.java }}.zip
windows-build-jvm-latest:
name: Windows - JVM build - Latest Version
runs-on: windows-latest
needs: quarkus-main-build
strategy:
matrix:
java: [ 11 ]
quarkus-version: ["999-SNAPSHOT"]
steps:
- uses: actions/checkout@v3
- 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
- uses: MinoruSekine/setup-scoop@main
with:
add_extras_bucket: 'true'
- name: Install helmfile
shell: bash
run: scoop install helmfile
- name: Download Maven Repo
uses: actions/download-artifact@v3
with:
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Build in JVM mode
shell: bash
run: |
mvn -B -fae -s .github/mvn-settings.xml clean install -Pframework,examples -Dquarkus.platform.version="${{ matrix.quarkus-version }}"
- name: Zip Artifacts
shell: bash
if: failure()
run: |
# Disambiguate windows find from cygwin find
/usr/bin/find . -name '*-reports/*' -type d | tar -czf artifacts-latest-windows-jvm${{ matrix.java }}.tar -T -
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: ci-artifacts
path: artifacts-latest-windows-jvm${{ matrix.java }}.tar