-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:apereo/cas
# Conflicts: # gradle.properties
- Loading branch information
Showing
1,705 changed files
with
16,147 additions
and
18,360 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
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 |
---|---|---|
|
@@ -3,22 +3,21 @@ name: Build | |
env: | ||
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | ||
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | ||
GRADLE_BUILD_OPTIONS: "--no-daemon -x check -x test -x javadoc --configure-on-demand --max-workers=8 --no-configuration-cache" | ||
TERM: xterm-256color | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GRADLE_BUILDCACHE_USER: ci | ||
GRADLE_BUILDCACHE_PSW: ${{ secrets.GRADLE_BUILDCACHE_PSW }} | ||
GH_PACKAGE_REGISTRY_USER: ${{ secrets.GH_PACKAGE_REGISTRY_USER }} | ||
GH_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }} | ||
JDK_CURRENT: 17 | ||
JDK_LATEST: 20-ea | ||
JDK_LATEST: 21-ea | ||
|
||
########################################################################## | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 5" | ||
|
||
#on: | ||
- cron: '0 0 * * *' | ||
# push: | ||
# branches: [ master ] | ||
# pull_request: | ||
|
@@ -29,19 +28,17 @@ on: | |
|
||
jobs: | ||
cancel-previous-runs: | ||
if: ${{ (github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI')) && !contains(github.event.head_commit.message, 'trigger dependency update') && !contains(github.event.head_commit.message, 'documentation update') && !contains(github.event.head_commit.message, 'ci:minimal') }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
steps: | ||
- uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
########################################################################## | ||
########################################################################## | ||
|
||
initialize: | ||
runs-on: ubuntu-latest | ||
needs: [cancel-previous-runs] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
|
@@ -53,13 +50,13 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-{{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
key: ${{ runner.os }}-${{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: Initialize | ||
run: ls ./ci && chmod -R +x ./ci/**/*.sh && ./ci/init-build.sh | ||
|
||
########################################################################## | ||
########################################################################## | ||
|
||
cache: | ||
runs-on: ubuntu-latest | ||
|
@@ -75,22 +72,22 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-{{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
key: ${{ runner.os }}-${{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: Initialize | ||
run: chmod -R +x ./ci/**/*.sh && ./ci/init-build.sh | ||
- uses: actions/checkout@v3 | ||
- name: Download Dependencies | ||
run: ./gradlew --build-cache --configure-on-demand --no-daemon downloadDependencies --parallel --refresh-dependencies --max-workers=8 | ||
run: ./gradlew downloadDependencies ${{ env.GRADLE_BUILD_OPTIONS }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
########################################################################## | ||
########################################################################## | ||
|
||
build: | ||
needs: [cache] | ||
|
@@ -102,8 +99,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -113,9 +110,9 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-{{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
key: ${{ runner.os }}-${{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: Initialize | ||
run: chmod -R +x ./ci/**/*.sh && ./ci/init-build.sh | ||
shell: bash | ||
|
@@ -126,14 +123,14 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
run: ./gradlew --build-cache --no-watch-fs --configure-on-demand --no-daemon build -x test -x javadoc -x check --parallel --max-workers=8 | ||
run: ./gradlew build ${{ env.GRADLE_BUILD_OPTIONS }} | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
with: | ||
name: binary-artifacts | ||
path: ./**/build/libs/*.* | ||
|
||
########################################################################## | ||
########################################################################## | ||
|
||
build-latest-jdk: | ||
runs-on: ubuntu-latest | ||
|
@@ -145,14 +142,14 @@ jobs: | |
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ env.JDK_LATEST }} | ||
distribution: 'temurin' | ||
distribution: 'zulu' | ||
- name: Setup Gradle Wrapper Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-{{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
key: ${{ runner.os }}-${{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: Initialize | ||
run: chmod -R +x ./ci/**/*.sh && ./ci/init-build.sh | ||
- uses: actions/cache@v3 | ||
|
@@ -162,7 +159,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
run: ./gradlew --build-cache --no-watch-fs --configure-on-demand --no-daemon build -x test -x javadoc -x check --parallel --max-workers=8 | ||
run: ./gradlew build ${{ env.GRADLE_BUILD_OPTIONS }} | ||
|
||
########################################################################## | ||
|
||
|
@@ -192,7 +189,7 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-{{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
key: ${{ runner.os }}-${{ github.sha }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
- name: Initialize | ||
|
@@ -204,4 +201,4 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Build with Gradle | ||
run: ./gradlew --build-cache --no-watch-fs --configure-on-demand --no-daemon build -x test -x javadoc -x check --parallel --max-workers=8 | ||
run: ./gradlew build ${{ env.GRADLE_BUILD_OPTIONS }} |
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
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
Oops, something went wrong.