-
Notifications
You must be signed in to change notification settings - Fork 10.6k
45 lines (37 loc) · 1.28 KB
/
copilot-setup-steps.yml
File metadata and controls
45 lines (37 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "Copilot Setup Steps"
# Allow testing of the setup steps from your repository's "Actions" tab.
on: workflow_dispatch
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ${{ github.repository_owner == 'dotnet' && '8-core-ubuntu-latest' || 'ubuntu-latest' }}
permissions:
contents: read
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2
with:
submodules: 'true'
# Include PrepareForHelix to maximise what is downloaded here
- name: Build solution
env:
# prevent GitInfo errors
CI: false
run: ./restore.sh
# For MCP servers like nuget's
- name: Install .NET 10.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.x
dotnet-quality: preview
# for MCP servers
- name: Install .NET 8.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.x
# Diagnostics in the log
- name: dotnet --info
run: dotnet --info