File tree Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Windows Self-Hosted Test
2
2
3
- Steps to be confirmed
3
+ Here are some steps the worked running on Windows.
4
4
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
+ ```
You can’t perform that action at this time.
0 commit comments