Skip to content

Commit ef6dead

Browse files
committed
add Utilities/README.md
1 parent b4f579b commit ef6dead

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

Utilities/README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
# Windows Self-Hosted Test
22

3-
Steps to be confirmed
3+
Here are some steps the worked running on Windows.
44

5-
```
6-
${REPO_ROOT_PATH} = git rev-parse --show-toplevel
7-
${TARGET_PATH} = "C:\source"
8-
9-
docker pull swiftlang/swift:nightly-main-windowsservercore-1809
10-
docker run --rm --volume "${REPO_ROOT_PATH}:${TARGET_PATH}" --interactive --tty --name "win_test" --workdir "${TARGET_PATH}" swiftlang/swift:nightly-main-windowsservercore-1809 python3 .\Utilities\build-using-self
11-
```
5+
1. Install Docker on a Windows host
6+
2. Launch a `Powershell.exe` session
7+
3. Run the following in power shell to start a container running the nightly toolchain
8+
```
9+
docker run --rm --interactive --tty swiftlang/swift:nightly-main-windowsservercore-1809 powershell.exe
10+
```
11+
4. When the container start, clone the "merged" PR to `C:\source`
12+
```
13+
mkdir C:\source
14+
cd C:\source
15+
git clone https://github.com/swiftlang/swift-package-manager .
16+
# Assign the PR ID to a variable
17+
$PR_ID = "8288"
18+
git fetch origin pull/$PR_ID/merge:ci_merge_$PR_ID
19+
git checkout ci_merge_$PR_ID
20+
```
21+
5. Run the CI pipeline script
22+
```
23+
python C:\source\Utilities\build-using-self
24+
```

0 commit comments

Comments
 (0)