Skip to content

Commit

Permalink
set params for experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Jul 29, 2023
1 parent ea56d9e commit 30f5afd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ env:
LC_ALL: "en_US.UTF-8"
BUILD_JDK_VERSION: "19"
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

jobs:
build:
if: github.repository == 'line/armeria'
if: github.repository == 'jrhee17/armeria'
runs-on: ${{ matrix.on }}
timeout-minutes: 120
strategy:
Expand Down Expand Up @@ -76,10 +78,10 @@ jobs:
# on other Gradle tasks such as tests.
- name: Build with Gradle (Shading only)
run: |
./gradlew --no-daemon --stacktrace shadedJar shadedTestJar trimShadedJar \
./gradlew --no-daemon --stacktrace clean shadedJar shadedTestJar trimShadedJar \
${{ (matrix.on == 'self-hosted') && '--max-workers=8' || '--max-workers=2' }} --parallel \
${{ matrix.coverage && '-Pcoverage' || '' }} \
-PnoLint \
-PnoLint -Dscan.tag.exp4 \
-PbuildJdkVersion=${{ env.BUILD_JDK_VERSION }} \
-PtestJavaVersion=${{ matrix.java }} \
${{ matrix.min-java && format('-PminimumJavaVersion={0}', matrix.min-java) || '' }} \
Expand All @@ -93,7 +95,7 @@ jobs:
${{ matrix.coverage && '-Pcoverage' || '' }} \
${{ matrix.leak && '-Pleak' || '' }} \
${{ matrix.blockhound && '-Pblockhound' || '' }} \
-PnoLint \
-PnoLint -Dscan.tag.exp4 \
-PflakyTests=false \
-Pretry=true \
-PbuildJdkVersion=${{ env.BUILD_JDK_VERSION }} \
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ publishSignatureRequired=true
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError
## Disable TLSv1.3 because it triggers handshake failures on some hosts we access.
systemProp.https.protocols=TLSv1,TLSv1.1,TLSv1.2
# enable caching
org.gradle.caching=true

jacocoExclusions=com/linecorp/armeria/internal/common/CurrentJavaVersionSpecific,com/linecorp/armeria/*/scalapb/**,META-INF/versions/**
13 changes: 13 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ gradleEnterprise {
}
}

buildCache {
local { enabled = false }
remote(HttpBuildCache) {
url = 'https://ge.armeria.dev/cache/exp4/'
credentials { creds ->
creds.username = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME')
creds.password = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD')
}
enabled = true
push = System.getenv('CI') != null
}}


rootProject.name = 'armeria'

apply from: "${rootDir}/gradle/scripts/settings-flags.gradle"
Expand Down

0 comments on commit 30f5afd

Please sign in to comment.