Verify example extension during release build
MODIFY
.github/workflows/patch-release-build.yml
.github/workflows/patch-release-build.yml
@@ -200,10 +200,18 @@ jobs:
git fetch origin main
git cherry-pick ${{ github.event.inputs.commits }}
- - name: Build
- run: ./gradlew build --stacktrace
+ - name: Local publish
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal -x javadoc
+
+ - name: Build distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
working-directory: examples/distro
+ - name: Build extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
+
release:
runs-on: ubuntu-latest
needs: [ prepare-release-branch, test, smoke-test, examples ]

MODIFY
.github/workflows/release-build.yml
.github/workflows/release-build.yml
@@ -122,10 +122,18 @@ jobs:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('examples/distro/gradle/wrapper/gradle-wrapper.properties') }}
- - name: Build
- run: ./gradlew build --stacktrace
+ - name: Local publish
+ # javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
+ run: ./gradlew publishToMavenLocal -x javadoc
+
+ - name: Build distro
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
working-directory: examples/distro
+ - name: Build extension
+ run: ./gradlew build --init-script ../../.github/scripts/local.init.gradle.kts
+ working-directory: examples/extension
+
release:
needs: [ test, smoke-test, examples ]
name: Build and release

Verify example extension during release build (#4247)