Update ubuntu image to 22.04 (#12495) #35
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Copilot Setup Steps" | |
| # Automatically run the setup steps when they are changed to allow for easy validation, and | |
| # allow manual testing through the repository's "Actions" tab | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| jobs: | |
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | |
| # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent | |
| copilot-setup-steps: | |
| runs-on: 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@v5 | |
| # Install .NET SDK as specified in global.json | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: global.json | |
| # Restore dependencies - this is critical for Copilot to understand the project structure | |
| - name: Restore dependencies | |
| continue-on-error: true | |
| env: | |
| # Prevent GitInfo errors and other CI-specific issues | |
| CI: false | |
| # Use restore script, but don't fail on errors so Copilot can still attempt to work | |
| run: ./restore.sh | |
| # Activate the private .NET install. Hopefully this resolves firewall issues when using dotnet build/test | |
| - name: Activate | |
| continue-on-error: true | |
| run: source ./activate.sh | |
| # Diagnostics in the log | |
| - name: Show .NET info | |
| run: dotnet --info | |
| # Show build environment info that might be helpful for debugging | |
| - name: Show environment info | |
| run: | | |
| echo "=== Git Status ===" | |
| git status || true | |
| echo "=== Directory structure ===" | |
| ls -la | |
| echo "=== Build artifacts ===" | |
| ls -la artifacts/ || true | |
| echo "=== Global.json ===" | |
| cat global.json |