copilot-setup-steps.yml 1.2 KB

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