Skip to content

Commit 707edcc

Browse files
H. Peter Anvin (Intel)Copilot
andcommitted
ci: add a real-MSVC (cl.exe/nmake) build job
Add a build-msvc job on windows-latest that uses ilammy/msvc-dev-cmd to set up the MSVC developer environment, builds NASM with 'nmake /f Mkfiles/msvc.mak', and smoke-tests the resulting nasm.exe/ ndisasm.exe by assembling and disassembling a tiny program and building a win64 object file. This is the first CI coverage of the MSVC build path (Mkfiles/msvc.mak + config/msvc.h), which previously had no automated verification. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d3cb174 commit 707edcc

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,32 @@ jobs:
4343
name: travis-log
4444
path: travis.log
4545
if-no-files-found: warn
46+
47+
build-msvc:
48+
name: Build with MSVC (Windows)
49+
runs-on: windows-latest
50+
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v6
54+
55+
- name: Set up MSVC developer environment
56+
uses: ilammy/msvc-dev-cmd@v1
57+
with:
58+
arch: x64
59+
60+
- name: Build with nmake/cl.exe
61+
shell: cmd
62+
run: |
63+
nmake /f Mkfiles\msvc.mak
64+
65+
- name: Smoke-test the resulting binaries
66+
shell: cmd
67+
run: |
68+
nasm.exe --version
69+
ndisasm.exe --version
70+
echo mov eax, 1 > smoke.asm
71+
echo ret >> smoke.asm
72+
nasm.exe -f bin smoke.asm -o smoke.bin
73+
ndisasm.exe -b 64 smoke.bin
74+
nasm.exe -f win64 smoke.asm -o smoke.obj

0 commit comments

Comments
 (0)