-
Notifications
You must be signed in to change notification settings - Fork 554
[copilot] setup .github/workflows/copilot-setup-steps.yml
#10193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1868953
Initial plan for issue
Copilot a9e079a
[ci] Create copilot-setup-steps.yml workflow file
Copilot 1fd4b18
[ci] Complete copilot setup workflow with timeouts and documentation
Copilot 24e6493
Update copilot-setup-steps.yml
jonathanpeppers 9f4646f
Update copilot-instructions.md
jonathanpeppers 2fb6940
Update copilot-setup-steps.yml
jonathanpeppers 4754b24
Handle `fatal: bad revision '^cfa4209..HEAD'`
jonathanpeppers e0bd0ce
Update XAVersionInfo.targets
jonathanpeppers 2d07a35
Remove `$(AndroidWorkloadExtendsElement)`
jonathanpeppers e4a6ec3
Update copilot-setup-steps.yml
jonathanpeppers 2ba11d6
Revert "Remove `$(AndroidWorkloadExtendsElement)`"
jonathanpeppers 55fa5ff
Update ConfigureLocalWorkload.targets
jonathanpeppers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: "Copilot Setup Steps" | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
copilot-setup-steps: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup .NET 10 Preview | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '10.0.100-preview.6.25304.106' | ||
|
||
- name: Verify .NET installation | ||
run: | | ||
dotnet --version | ||
echo "Checking .NET runtimes:" | ||
dotnet --list-runtimes | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Install basic dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y curl wget git build-essential | ||
|
||
- name: Set environment variables | ||
run: | | ||
echo "DOTNET_NOLOGO=true" >> $GITHUB_ENV | ||
echo "DOTNET_CLI_TELEMETRY_OPTOUT=true" >> $GITHUB_ENV | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Prepare external git dependencies | ||
run: | | ||
echo "=== Preparing external git dependencies ===" | ||
make prepare-external-git-dependencies PREPARE_CI=1 CONFIGURATION=Debug | ||
timeout-minutes: 30 | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Run jenkins build | ||
run: | | ||
echo "=== Running jenkins build (this may take a while) ===" | ||
make jenkins PREPARE_CI=1 PREPARE_AUTOPROVISION=1 CONFIGURATION=Debug | ||
timeout-minutes: 60 | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Create NuGet packages | ||
run: | | ||
echo "=== Creating NuGet packages ===" | ||
make create-nupkgs CONFIGURATION=Debug | ||
timeout-minutes: 20 | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Verify local workload setup | ||
run: | | ||
if [ -f "./dotnet-local.sh" ]; then | ||
./dotnet-local.sh --version | ||
./dotnet-local.sh workload list | ||
else | ||
echo "dotnet-local.sh not found, checking for dotnet in bin/" | ||
find bin/ -name "dotnet" -type f || echo "No local dotnet found" | ||
fi | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Test building sample project | ||
run: | | ||
if [ -f "./dotnet-local.sh" ]; then | ||
echo "=== Building HelloWorld sample ===" | ||
cd samples/HelloWorld/HelloLibrary | ||
../../../dotnet-local.sh restore HelloLibrary.DotNet.csproj | ||
../../../dotnet-local.sh build HelloLibrary.DotNet.csproj --no-restore | ||
echo "=== HelloLibrary build completed successfully ===" | ||
else | ||
echo "Skipping sample build - dotnet-local.sh not available" | ||
fi | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Display disk usage | ||
run: df -h | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Show build artifacts | ||
run: | | ||
echo "=== Checking bin/ directory ===" | ||
ls -la bin/ || echo "bin/ directory not found" | ||
echo "=== Checking for packs ===" | ||
find bin/ -name "*packs*" -type d || echo "No packs directories found" | ||
echo "=== Checking for Android workload ===" | ||
find bin/ -name "*Android*" -type d || echo "No Android directories found" | ||
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
jonathanpeppers marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.