mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
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>
This commit is contained in:
parent
d3cb1746d3
commit
707edccf03
1 changed files with 29 additions and 0 deletions
29
.github/workflows/test.yml
vendored
29
.github/workflows/test.yml
vendored
|
|
@ -43,3 +43,32 @@ jobs:
|
|||
name: travis-log
|
||||
path: travis.log
|
||||
if-no-files-found: warn
|
||||
|
||||
build-msvc:
|
||||
name: Build with MSVC (Windows)
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up MSVC developer environment
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x64
|
||||
|
||||
- name: Build with nmake/cl.exe
|
||||
shell: cmd
|
||||
run: |
|
||||
nmake /f Mkfiles\msvc.mak
|
||||
|
||||
- name: Smoke-test the resulting binaries
|
||||
shell: cmd
|
||||
run: |
|
||||
nasm.exe --version
|
||||
ndisasm.exe --version
|
||||
echo mov eax, 1 > smoke.asm
|
||||
echo ret >> smoke.asm
|
||||
nasm.exe -f bin smoke.asm -o smoke.bin
|
||||
ndisasm.exe -b 64 smoke.bin
|
||||
nasm.exe -f win64 smoke.asm -o smoke.obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue