Skip to content

Commit 6e94811

Browse files
authored
[copilot] setup .github/workflows/copilot-setup-steps.yml (#1175)
Fixes: #1174 Context: https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent Setup `.github/workflows/copilot-setup-steps.yml`, which is a Github action that runs (only on Ubuntu) prior to Copilot doing its work. This makes Copilot more useful, as it has a locally cloned and built source tree with all dependencies installed. Copilot will be able to run various commands to achieve tasks as assigned.
1 parent 2baffee commit 6e94811

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Copilot Setup Steps"
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
copilot-setup-steps:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: '8.x'
17+
18+
- name: Install Cake .NET Tool
19+
run: dotnet tool install -g cake.tool
20+
21+
- name: Install Android workload
22+
run: dotnet workload install android
23+
24+
- name: Setup OpenJDK 11
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'microsoft'
28+
java-version: '11'
29+
30+
- name: Run dotnet cake
31+
run: dotnet cake
32+
33+
- name: Display environment info
34+
run: |
35+
echo "=== Environment Summary ==="
36+
echo ".NET Version: $(dotnet --version)"
37+
echo "Java Version: $(java -version 2>&1 | head -1)"
38+
echo "Android SDK Root: $ANDROID_SDK_ROOT"
39+
echo "Java Home: $JAVA_HOME"
40+
echo "=== Installed Workloads ==="
41+
dotnet workload list

0 commit comments

Comments
 (0)