diff --git a/.github/workflows/actions_build.yml b/.github/workflows/actions_build.yml index 5df8b5633a0..6a9c8f91ffe 100644 --- a/.github/workflows/actions_build.yml +++ b/.github/workflows/actions_build.yml @@ -6,9 +6,10 @@ on: tags-ignore: # The release versions will be verified by 'publish-release.yml' - armeria-* - pull_request: + pull_request_target: merge_group: + concurrency: # Cancel the previous builds in the same PR. # Allow running concurrently for all non-PR commits. @@ -18,6 +19,7 @@ concurrency: env: LC_ALL: "en_US.UTF-8" BUILD_JDK_VERSION: "19" + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} jobs: build: @@ -156,8 +158,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@v2 diff --git a/settings.gradle b/settings.gradle index f56e10a7684..dfbd6e2acbf 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,6 +6,8 @@ plugins { // automatically download one based on the foojay Disco API. // https://docs.gradle.org/8.1.1/userguide/toolchains.html#sec:provisioning id("org.gradle.toolchains.foojay-resolver") version "0.5.0" + id "com.gradle.enterprise" version "3.13.3" + } toolchainManagement { jvm { @@ -16,6 +18,17 @@ toolchainManagement { } } } +gradleEnterprise { + server = "https://ge.armeria.dev" + buildScan { + // publish build scans if the access key is provided + publishAlwaysIf(System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") != null) + uploadInBackground = false + capture { + taskInputFiles = true + } + } +} rootProject.name = 'armeria'