Skip to content

Commit 9978af3

Browse files
authored
Create main.yml
1 parent edc1923 commit 9978af3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: NanoServer MSVC
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
run-nanoserver:
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Developer Command Prompt
13+
uses: ilammy/msvc-dev-cmd@release/v1
14+
with:
15+
arch: x64
16+
sdk: 10.0.22621.0
17+
18+
- name: Build Dockerfile (default build-args)
19+
shell: pwsh
20+
run: |
21+
docker build -t nanoserver-msvc-winsdk .
22+
23+
- name: Run container
24+
shell: pwsh
25+
run: |
26+
$repoWorkspace = "${{ github.workspace }}" -replace "/", "\"
27+
docker run -dit --name orphan `
28+
-v "$repoWorkspace:C:\mount\source" `
29+
-v "$env:VCToolsInstallDir:C:\mount\msvc" `
30+
-v "$env:WindowsSdkDir:C:\mount\windowssdk" `
31+
nanoserver-msvc-winsdk cmd

0 commit comments

Comments
 (0)