CI job polish (#1341)

Avoids issues where setup-java post-task cacheing will hang with "device
or resource busy".
This commit is contained in:
Daniel Chao
2025-12-03 15:11:33 -08:00
committed by Jen Basch
parent 5b6ee977c9
commit 18af7571e8
7 changed files with 90 additions and 168 deletions

5
.github/index.pkl vendored
View File

@@ -19,6 +19,11 @@ testReports {
html {
"**/build/reports/tests/**/*"
}
excludeJobs {
"bench"
"deploy-release"
"github-release"
}
}
local baseGradleCheck: SimpleGradleJob = new {

View File

@@ -30,6 +30,7 @@ fixed gradleArgs =
new Listing {
"--info"
"--stacktrace"
"--no-daemon"
"-DpklMultiJdkTesting=true"
when (isRelease) {
"-DreleaseBuild=true"

48
.github/workflows/build.yml generated vendored
View File

@@ -31,7 +31,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -62,7 +62,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -90,20 +90,7 @@ jobs:
cache: gradle
- name: bench:jmh
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true bench:jmh
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-bench
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-bench
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true bench:jmh
gradle-compatibility:
runs-on: ubuntu-latest
env:
@@ -120,7 +107,7 @@ jobs:
cache: gradle
- name: :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -151,7 +138,7 @@ jobs:
- uses: actions/checkout@v5
- name: gradle build java executables
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -187,7 +174,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -220,7 +207,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -256,7 +243,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -289,7 +276,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -395,7 +382,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -429,7 +416,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -465,7 +452,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -498,7 +485,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -534,7 +521,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -567,7 +554,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -673,7 +660,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -707,7 +694,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -731,7 +718,6 @@ jobs:
needs:
- gradle-check
- gradle-check-windows
- bench
- gradle-compatibility
- java-executables-snapshot
- pkl-cli-macOS-amd64-snapshot

50
.github/workflows/main.yml generated vendored
View File

@@ -30,7 +30,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -61,7 +61,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -89,20 +89,7 @@ jobs:
cache: gradle
- name: bench:jmh
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true bench:jmh
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-bench
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-bench
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true bench:jmh
gradle-compatibility:
runs-on: ubuntu-latest
env:
@@ -119,7 +106,7 @@ jobs:
cache: gradle
- name: :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -150,7 +137,7 @@ jobs:
- uses: actions/checkout@v5
- name: gradle build java executables
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -186,7 +173,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -219,7 +206,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -255,7 +242,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -288,7 +275,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -394,7 +381,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -428,7 +415,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -464,7 +451,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -497,7 +484,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -533,7 +520,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -566,7 +553,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -672,7 +659,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -706,7 +693,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -767,7 +754,7 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true --no-parallel publishToSonatype
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true --no-parallel publishToSonatype
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -786,7 +773,6 @@ jobs:
needs:
- gradle-check
- gradle-check-windows
- bench
- gradle-compatibility
- java-executables-snapshot
- pkl-cli-macOS-amd64-snapshot

28
.github/workflows/prb.yml generated vendored
View File

@@ -26,7 +26,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -59,7 +59,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -91,7 +91,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -126,7 +126,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -163,7 +163,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -198,7 +198,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -306,7 +306,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -342,7 +342,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -379,7 +379,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -414,7 +414,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -451,7 +451,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -486,7 +486,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -594,7 +594,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -630,7 +630,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:

48
.github/workflows/release-branch.yml generated vendored
View File

@@ -30,7 +30,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -61,7 +61,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -89,20 +89,7 @@ jobs:
cache: gradle
- name: bench:jmh
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true bench:jmh
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-bench
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-bench
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true bench:jmh
gradle-compatibility:
runs-on: ubuntu-latest
env:
@@ -119,7 +106,7 @@ jobs:
cache: gradle
- name: :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -150,7 +137,7 @@ jobs:
- uses: actions/checkout@v5
- name: gradle build java executables
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -186,7 +173,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -219,7 +206,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -255,7 +242,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -288,7 +275,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -394,7 +381,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -428,7 +415,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -464,7 +451,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -497,7 +484,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -533,7 +520,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -566,7 +553,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -672,7 +659,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -Dpkl.musl=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -706,7 +693,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -730,7 +717,6 @@ jobs:
needs:
- gradle-check
- gradle-check-windows
- bench
- gradle-compatibility
- java-executables-snapshot
- pkl-cli-macOS-amd64-snapshot

78
.github/workflows/release.yml generated vendored
View File

@@ -30,7 +30,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -61,7 +61,7 @@ jobs:
cache: gradle
- name: check
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true check
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true check
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -89,20 +89,7 @@ jobs:
cache: gradle
- name: bench:jmh
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true bench:jmh
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-bench
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-bench
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true bench:jmh
gradle-compatibility:
runs-on: ubuntu-latest
env:
@@ -119,7 +106,7 @@ jobs:
cache: gradle
- name: :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true :pkl-gradle:build :pkl-gradle:compatibilityTestReleases
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
@@ -150,7 +137,7 @@ jobs:
- uses: actions/checkout@v5
- name: gradle build java executables
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:build pkl-cli:build pkl-codegen-java:build pkl-codegen-kotlin:build
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -186,7 +173,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -219,7 +206,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -255,7 +242,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -288,7 +275,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -394,7 +381,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.musl=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.musl=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -428,7 +415,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-cli:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -464,7 +451,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.targetArch=amd64 -Dpkl.native--native-compiler-path=${{ github.workspace }}/.github/scripts/cc_macos_amd64.sh pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -497,7 +484,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -533,7 +520,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -566,7 +553,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -672,7 +659,7 @@ jobs:
echo "${HOME}/staticdeps/bin" >> "$GITHUB_PATH"
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.musl=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true -Dpkl.musl=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -706,7 +693,7 @@ jobs:
cache: gradle
- name: gradle buildNative
shell: bash
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true pkl-doc:buildNative
- name: Upload executable artifacts
uses: actions/upload-artifact@v5
with:
@@ -767,20 +754,7 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
run: ./gradlew --info --stacktrace -DpklMultiJdkTesting=true publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-deploy-release
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-deploy-release
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true publishToSonatype closeAndReleaseSonatypeStagingRepository
github-release:
needs: deploy-release
permissions:
@@ -807,25 +781,11 @@ jobs:
--verify-tag \
--notes "Release notes: https://pkl-lang.org/main/current/release-notes/changelog.html#release-${TAG_NAME}" \
*/build/executable/*
- name: Upload Test Result XML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-xml-github-release
path: '**/build/test-results/**/*.xml'
- name: Upload Test Result HTML
if: '!cancelled()'
uses: actions/upload-artifact@v5
with:
name: test-results-html-github-release
path: '**/build/reports/tests/**/*'
if-no-files-found: ignore
publish-test-results:
if: '!failure() && !cancelled()'
needs:
- gradle-check
- gradle-check-windows
- bench
- gradle-compatibility
- java-executables-release
- pkl-cli-macOS-amd64-release
@@ -840,8 +800,6 @@ jobs:
- pkl-doc-linux-aarch64-release
- pkl-doc-alpine-linux-amd64-release
- pkl-doc-windows-amd64-release
- deploy-release
- github-release
permissions:
checks: write
runs-on: ubuntu-latest