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 GitHub
parent db6ff394d7
commit c5b98d6510
7 changed files with 90 additions and 168 deletions

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