Bumps the all-actions group with 2 updates in the / directory: [gradle/actions](https://github.com/gradle/actions) and [github/codeql-action](https://github.com/github/codeql-action). Updates `gradle/actions` from 6.2.0 to 6.3.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gradle/actions/releases">gradle/actions's releases</a>.</em></p> <blockquote> <h2>v6.3.0</h2> <h2>Highlights</h2> <h3>Enhanced Caching: Windows fixes and a cache-protocol bump</h3> <p>This release updates <code>gradle-actions-caching</code> to <strong>v1.0.0</strong> (up from v0.7.0), which fixes two significant caching defects, both most visible on Windows:</p> <ul> <li> <p><strong>Cache entries failed to store at all on Windows.</strong>. Every entry failed with <code>Path Validation Error: Path(s) specified in the action for caching do(es) not exist</code>, even though the Gradle User Home was fully intact. Nothing was stored, so every downstream job ran against an empty Gradle User Home. The cause was a nested, unpatched copy of <code>@actions/glob</code> combined with a silently swallowed <code>require()</code> in the bundle, which left Windows path separators unnormalized.</p> </li> <li> <p><strong>Cache cleanup deleted instrumented jars that were in use.</strong> A bug in key hashing for paths shorter than 64 characters made cleanup judge freshly created <code>caches/jars-9</code> entries as unused and remove them, so the <code>instrumented-jars</code> entry was never saved and every job re-instrumented its classpaths.</p> <p>Also included: cache entry names are now consistent between the save and restore reports — restore previously fell back to showing the raw glob pattern (e.g. <code>/home/runner/.gradle/caches/modules-*/files-*/*/*/*/*/</code>) instead of <code>dependencies</code>.</p> </li> </ul> <blockquote> <p>[!IMPORTANT] <strong>Existing cache entries are invalidated by this release.</strong> The cache protocol version was bumped to <code>v2</code>, so the first run after upgrading will be a cache miss and will repopulate the cache. No configuration changes are required.</p> </blockquote> <h3>Basic caching warns instead of failing silently</h3> <p>The basic (open-source) caching provider now emits a warning and reports <code>(Entry not saved: save failed)</code> in the Job Summary when a cache save fails, rather than reporting success (<a href="https://redirect.github.com/gradle/actions/issues/1028">#1028</a>).</p> <h3>Dependency submission works with Isolated Projects</h3> <p><code>dependency-submission</code> now disables Isolated Projects via a promoted property, so dependency graph generation works on builds that enable it (<a href="https://redirect.github.com/gradle/actions/issues/1025">#1025</a>). Thanks to <a href="https://github.com/reinsch82"><code>@reinsch82</code></a> for the contribution.</p> <h3>Updated defaults</h3> <ul> <li>Injected Develocity Gradle plugin: <strong>4.4.2 → 4.5.0</strong></li> <li>36 new known-good wrapper checksums added for <code>wrapper-validation</code></li> </ul> <h2>What's Changed</h2> <ul> <li>Render configuration-cache status in the caching Job Summary by <a href="https://github.com/bigdaz"><code>@bigdaz</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/989">gradle/actions#989</a></li> <li>Update gradle-actions-caching library to v0.8.0 by <a href="https://github.com/bot-githubaction"><code>@bot-githubaction</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/993">gradle/actions#993</a></li> <li>Support experimental project-entry caching (configuration-cache + build-logic) by <a href="https://github.com/bigdaz"><code>@bigdaz</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/994">gradle/actions#994</a></li> <li>Update gradle-actions-caching library to v0.9.0 by <a href="https://github.com/bot-githubaction"><code>@bot-githubaction</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/996">gradle/actions#996</a></li> <li>Disable Isolated Projects via promoted property in dependency-submission by <a href="https://github.com/reinsch82"><code>@reinsch82</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/1025">gradle/actions#1025</a></li> <li>Add Windows coverage for caching via a new smoke-test suite by <a href="https://github.com/bigdaz"><code>@bigdaz</code></a> in <a href="https://redirect.github.com/gradle/actions/pull/1027">gradle/actions#1027</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="9c971963be"><code>9c97196</code></a> Bump the github-actions group across 2 directories with 9 updates (<a href="https://redirect.github.com/gradle/actions/issues/1024">#1024</a>)</li> <li><a href="760e4a476b"><code>760e4a4</code></a> Bump the npm-dependencies group across 1 directory with 2 updates (<a href="https://redirect.github.com/gradle/actions/issues/1037">#1037</a>)</li> <li><a href="73e4c4222b"><code>73e4c42</code></a> Update gradle-actions-caching library to v1.0.0 (<a href="https://redirect.github.com/gradle/actions/issues/1029">#1029</a>)</li> <li><a href="a9d14388b4"><code>a9d1438</code></a> Add dependabot ignore rules for TypeScript 7.x and <code>@types/node</code> 25.x/26.x</li> <li><a href="68f37005d7"><code>68f3700</code></a> [bot] Update dist directory</li> <li><a href="5971332a8f"><code>5971332</code></a> Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin to 4.5...</li> <li><a href="b5bc804016"><code>b5bc804</code></a> [bot] Update dist directory</li> <li><a href="dcbab4e919"><code>dcbab4e</code></a> Bump npm-dependencies group with TypeScript 6.0.3, <code>@types/node</code> 24.x, and secu...</li> <li><a href="ca8d95717f"><code>ca8d957</code></a> Move non-smoke restore-gradle-home tests back to the integ-test suite (<a href="https://redirect.github.com/gradle/actions/issues/1032">#1032</a>)</li> <li><a href="4318659b28"><code>4318659</code></a> [bot] Update dist directory</li> <li>Additional commits viewable in <a href="https://github.com/gradle/actions/compare/v6.2.0...v6.3.0">compare view</a></li> </ul> </details> <br /> Updates `github/codeql-action` from 4.37.4 to 4.37.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/github/codeql-action/releases">github/codeql-action's releases</a>.</em></p> <blockquote> <h2>v4.37.6</h2> <ul> <li>Changed the default filepath for the new remote file address format that was introduced in CodeQL Action 4.37.0 / 3.37.0 to <code>.github/codeql-config.yml</code> to align it with the suggested path that is used elsewhere. <a href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li> </ul> <h2>v4.37.5</h2> <ul> <li>Fixed a bug where a network error while streaming the download of the CodeQL bundle could terminate the <code>init</code> Action instead of falling back to downloading the bundle before extracting it. <a href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action's changelog</a>.</em></p> <blockquote> <h2>4.37.6 - 04 Aug 2026</h2> <ul> <li>Changed the default filepath for the new remote file address format that was introduced in CodeQL Action 4.37.0 / 3.37.0 to <code>.github/codeql-config.yml</code> to align it with the suggested path that is used elsewhere. <a href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li> </ul> <h2>4.37.5 - 03 Aug 2026</h2> <ul> <li>Fixed a bug where a network error while streaming the download of the CodeQL bundle could terminate the <code>init</code> Action instead of falling back to downloading the bundle before extracting it. <a href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="5595ccaf91"><code>5595cca</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/4071">#4071</a> from github/update-v4.37.6-6a9359a1b</li> <li><a href="ec9c75796a"><code>ec9c757</code></a> Add change note for PR 4070</li> <li><a href="45c8742e17"><code>45c8742</code></a> Update changelog for v4.37.6</li> <li><a href="6a9359a1bd"><code>6a9359a</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/4070">#4070</a> from github/mbg/remote-address/change-file-default</li> <li><a href="065cdc0394"><code>065cdc0</code></a> Change <code>DEFAULT_CONFIG_FILE_NAME</code></li> <li><a href="f99dd5aeee"><code>f99dd5a</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/4066">#4066</a> from github/dependabot/npm_and_yarn/js-yaml-5.2.2</li> <li><a href="1804b211a3"><code>1804b21</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/4068">#4068</a> from github/mergeback/v4.37.5-to-main-d1ba80a1</li> <li><a href="3020a2f462"><code>3020a2f</code></a> Rebuild</li> <li><a href="93c3a5a40b"><code>93c3a5a</code></a> Update changelog and version after v4.37.5</li> <li><a href="d1ba80a13d"><code>d1ba80a</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/4067">#4067</a> from github/update-v4.37.5-1cd4d01d5</li> <li>Additional commits viewable in <a href="https://github.com/github/codeql-action/compare/v4.37.4...v4.37.6">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: Build Samples
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'samples/**'
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'samples/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
# Cancel only when the run is NOT on `main` branch
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
env:
|
|
JAVA_VERSION: 21
|
|
JAVA_DISTRIBUTION: temurin
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- kotlin-mcp-client
|
|
- kotlin-mcp-server
|
|
- simple-streamable-server
|
|
- weather-stdio-server
|
|
|
|
name: Build Sample (${{ matrix.sample }})
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
distribution: ${{ env.JAVA_DISTRIBUTION }}
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v6.3.0
|
|
with:
|
|
validate-wrappers: true
|
|
add-job-summary: 'always'
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
- name: "Build Sample: ${{ matrix.sample }}"
|
|
working-directory: ./samples/${{ matrix.sample }}
|
|
run: ./gradlew build
|
|
|
|
- name: Upload Reports
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: reports-samples-${{ matrix.sample }}
|
|
path: |
|
|
**/build/reports/
|