Skip to content

Commit f4bbedf

Browse files
authored
Add host workflow to copilot-instructions.md (#117947)
1 parent b97bebe commit f4bbedf

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

.github/copilot-instructions.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ In addition to the rules enforced by `.editorconfig`, you SHOULD:
3737
- [5.1. How To: Identify Affected Libraries](#51-how-to-identify-affected-libraries)
3838
- [5.2. How To: Build and Test Specific Library](#52-how-to-build-and-test-specific-library)
3939
- [6. WebAssembly (WASM) Libraries Workflow](#6-webassembly-wasm-libraries-workflow)
40-
- [7. Additional Notes](#7-additional-notes)
41-
- [7.1. Troubleshooting](#71-troubleshooting)
42-
- [7.2. Windows Command Equivalents](#72-windows-command-equivalents)
43-
- [7.3. References](#73-references)
40+
- [7. Host Workflow](#7-host-workflow)
41+
- [8. Additional Notes](#8-additional-notes)
42+
- [8.1. Troubleshooting](#81-troubleshooting)
43+
- [8.2. Windows Command Equivalents](#82-windows-command-equivalents)
44+
- [8.3. References](#83-references)
4445

4546
## 1. Prerequisites
4647

@@ -54,6 +55,7 @@ Identify which components will be impacted by the changes. If in doubt, analyze
5455
- **Mono Runtime:** Changes in `src/mono/`
5556
- **Libraries:** Changes in `src/libraries/`
5657
- **WASM/WASI Libraries:** Changes in `src/libraries/` *and* the affected library targets WASM or WASI *and* the changes are included for the target (see below for details).
58+
- **Host:** Changes in `src/native/corehost/`, `src/installer/managed/`, or `src/installer/tests/`
5759
- If none above apply, it is most possibly an infra-only or a docs-only change. Skip build and test steps.
5860

5961
**WASM/WASI Library Change Detection**
@@ -76,6 +78,7 @@ Before applying any changes, ensure you have a full successful build of the need
7678
- **Mono Runtime:** `./build.sh mono+libs`
7779
- **Libraries:** `./build.sh clr+libs -rc release`
7880
- **WASM/WASI Libraries:** `./build.sh mono+libs -os browser`
81+
- **Host:** `./build.sh clr+libs+host -rc release -lc release`
7982

8083
3. Verify the build completed without error.
8184
- _If the baseline build failed, report the failure and don't proceed with the changes._
@@ -239,9 +242,24 @@ From the repository root:
239242

240243
---
241244

242-
## 7. Additional Notes
245+
## 7. Host Workflow
243246

244-
### 7.1. Troubleshooting
247+
From the repository root:
248+
249+
- Build:
250+
`./build.sh host -rc release -lc release`
251+
252+
- Run all tests:
253+
`./build.sh host.tests -rc release -lc release -test`
254+
255+
- More info can be found in the dedicated workflow docs:
256+
- [Building and running host tests](/docs/workflow/testing/host/testing.md)
257+
258+
---
259+
260+
## 8. Additional Notes
261+
262+
### 8.1. Troubleshooting
245263

246264
- **Shared Framework Missing**
247265

@@ -273,15 +291,15 @@ From the repository root:
273291

274292
---
275293

276-
### 7.2. Windows Command Equivalents
294+
### 8.2. Windows Command Equivalents
277295

278296
- Use `build.cmd` instead of `build.sh` on Windows.
279297
- Set PATH: `set PATH=%CD%\.dotnet;%PATH%`
280298
- All other commands are similar unless otherwise noted.
281299

282300
---
283301

284-
### 7.3. References
302+
### 8.3. References
285303

286304
- [`.editorconfig`](/.editorconfig)
287305
- [Building CoreCLR Guide](/docs/workflow/building/coreclr/README.md)
@@ -292,3 +310,4 @@ From the repository root:
292310
- [Testing Libraries](/docs/workflow/testing/libraries/testing.md)
293311
- [Build libraries for WebAssembly](/docs/workflow/building/libraries/webassembly-instructions.md)
294312
- [Testing Libraries on WebAssembly](/docs/workflow/testing/libraries/testing-wasm.md)
313+
- [Building and running host tests](/docs/workflow/testing/host/testing.md)

0 commit comments

Comments
 (0)