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

empty commit #27

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
26 changes: 13 additions & 13 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ env:

jobs:
build:
if: github.repository == 'line/armeria'
if: github.repository == 'jrhee17/armeria'
runs-on: ${{ matrix.on }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
on: [ self-hosted, macos-12, windows-latest ]
on: [ ubuntu-latest, macos-12, windows-latest ]
java: [ 19 ]
include:
- java: 8
on: self-hosted
on: ubuntu-latest
- java: 11
on: self-hosted
on: ubuntu-latest
- java: 17
on: self-hosted
on: ubuntu-latest
leak: true
- java: 17
on: self-hosted
on: ubuntu-latest
min-java: 11
- java: 17
on: self-hosted
on: ubuntu-latest
min-java: 17
coverage: true
- java: 19
on: self-hosted
on: ubuntu-latest
snapshot: true
# blockhound makes the build run about 10 minutes slower
blockhound: true
Expand Down Expand Up @@ -208,8 +208,8 @@ jobs:
retention-days: 3

lint:
if: github.repository == 'line/armeria'
runs-on: self-hosted
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
Expand All @@ -229,7 +229,7 @@ jobs:
./gradlew --no-daemon --stacktrace --max-workers=8 --parallel lint

site:
if: github.repository == 'line/armeria'
if: github.repository == 'jrhee17/armeria'
# ubuntu-latest is preferred for site job.
# node_modules need complicated dependencies that are difficult to install on self-hosted runners.
runs-on: ubuntu-latest
Expand Down Expand Up @@ -258,8 +258,8 @@ jobs:
shell: bash

flaky-tests:
if: github.repository == 'line/armeria'
runs-on: self-hosted
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Gradle build scans to ge.armeria.dev
name: Upload artifacts to ge.armeria.dev

on:
workflow_run:
Expand All @@ -8,6 +8,7 @@ on:

env:
LC_ALL: "en_US.UTF-8"
BUILD_JDK_VERSION: "19"
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
RUN_ID: ${{ github.event.workflow_run.id }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
Expand All @@ -18,8 +19,8 @@ env:
jobs:
upload-gradle-build-scan:
name: Upload Gradle build scans
if: github.repository == 'line/armeria'
runs-on: self-hosted
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -105,3 +106,34 @@ jobs:
env:
BUILD_SCANS: ${{ steps.upload-build-scans.outputs.BUILD_SCANS }}
PR_NUMBER: ${{ steps.get-pr-number.outputs.PR_NUMBER }}

upload-build-cache:
runs-on: ${{ matrix.on }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
on: [ ubuntu-latest, macos-12, windows-latest ]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.COMMIT_SHA }}

- id: setup-build-jdk
name: Set up build JDK ${{ env.BUILD_JDK_VERSION }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.BUILD_JDK_VERSION }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build with Gradle
run: |
./gradlew --no-daemon --stacktrace --build-cache build \
${{ (matrix.on == 'self-hosted') && '--max-workers=8' || '--max-workers=2' }} --parallel \
-PbuildJdkVersion=${{ env.BUILD_JDK_VERSION }} \
-Pretry=true -PfailOnPassedAfterRetry=false \
-Porg.gradle.java.installations.paths=${{ steps.setup-build-jdk.outputs.path }}
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/public-suffixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:

jobs:
update-psl:
if: github.repository == 'line/armeria'
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ env:
jobs:
publish:
name: Publish final artifacts
if: github.repository == 'line/armeria'
runs-on: self-hosted
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
publish-site:
if: github.repository == 'line/armeria'
if: github.repository == 'jrhee17/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ allprojects {
retry {
if (rootProject.findProperty('retry') == 'true') {
maxRetries = 3
failOnPassedAfterRetry = true
failOnPassedAfterRetry = rootProject.findProperty('failOnPassedAfterRetry') != 'false'
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ plugins {

import com.gradle.scan.plugin.PublishedBuildScan

def isCi = System.getenv("CI") != null

gradleEnterprise {
server = "https://ge.armeria.dev"
buildScan {
def isCi = System.getenv("CI") != null
publishIfAuthenticated()
publishAlways()
uploadInBackground = !isCi
Expand Down Expand Up @@ -58,6 +59,12 @@ gradleEnterprise {
}
}

buildCache {
remote(gradleEnterprise.buildCache) {
push = isCi
}
}

rootProject.name = 'armeria'

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