Skip to content

Commit cb07998

Browse files
authored
fix(copilot): use Java 21 on GitHub Actions runner
Add comments to explain the workflow setup for GitHub Copilot.
1 parent 06c100a commit cb07998

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# This workflow runs the setup steps that the GitHub Copilot coding agent
2+
# needs before it can start MCP servers.
3+
#
4+
# It downloads and installs the jdtls-mcp server to a stable cache location
5+
# (~/.cache/jdtls-mcp/current/) so that the MCP configuration can reference
6+
# a fixed path without needing to download anything at MCP startup time.
17
on:
28
workflow_dispatch:
39

@@ -9,6 +15,12 @@ jobs:
915
runs-on: ubuntu-latest
1016

1117
steps:
18+
- name: Set up Java 21
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: '21'
23+
1224
- name: Install jdtls-mcp
1325
run: |
1426
bash <(curl -fsSL https://raw.githubusercontent.com/sunix/jdtls-mcp/main/scripts/install.sh)

0 commit comments

Comments
 (0)