-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add distribution check workflow (#255)
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
- Loading branch information
1 parent
e001de1
commit 5f8a79a
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Distribution check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
distribution-check: | ||
name: Distribution check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: 'gradle' | ||
|
||
- name: 'Setup: Java 8 env' | ||
run: echo "JAVA8_HOME=$JAVA_HOME" >> $GITHUB_ENV | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
cache: 'gradle' | ||
|
||
- name: 'Setup: Java 11 env' | ||
run: echo "JAVA11_HOME=$JAVA_HOME" >> $GITHUB_ENV | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'gradle' | ||
|
||
- name: 'Setup: Java 17 env' | ||
run: echo "JAVA17_HOME=$JAVA_HOME" >> $GITHUB_ENV | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run distribution on snapshot | ||
run: | | ||
./gradlew clean -S -Dbuild.snapshot=true -Dorg.gradle.warning.mode=summary distribution --no-configuration-cache --no-daemon --info | ||
- name: Run distribution on release | ||
run: | | ||
./gradlew clean -S -Dbuild.snapshot=false -Dorg.gradle.warning.mode=summary distribution --no-configuration-cache --no-daemon --info |