| 1 |
name: NMake |
| 2 |
on: [push, pull_request] |
| 3 |
jobs: |
| 4 |
nmake: |
| 5 |
name: ${{ matrix.name }} |
| 6 |
runs-on: ${{ matrix.os }} |
| 7 |
strategy: |
| 8 |
fail-fast: false |
| 9 |
matrix: |
| 10 |
include: |
| 11 |
- name: Windows NMake x86 |
| 12 |
os: windows-2022 |
| 13 |
makefile: win32/Makefile.msc |
| 14 |
arch: x86 |
| 15 |
|
| 16 |
- name: Windows NMake x64 compat |
| 17 |
os: windows-2022 |
| 18 |
makefile: win32/Makefile.msc |
| 19 |
arch: x86_amd64 |
| 20 |
additional-args: ZLIB_COMPAT=yes |
| 21 |
|
| 22 |
- name: Windows NMake x64 Symbol Prefix |
| 23 |
os: windows-2022 |
| 24 |
makefile: win32/Makefile.msc |
| 25 |
arch: x86_amd64 |
| 26 |
additional-args: SYMBOL_PREFIX=zTest_ |
| 27 |
|
| 28 |
- name: Windows NMake x64 Symbol Prefix Compat |
| 29 |
os: windows-2022 |
| 30 |
makefile: win32/Makefile.msc |
| 31 |
arch: x86_amd64 |
| 32 |
additional-args: ZLIB_COMPAT=yes SYMBOL_PREFIX=zTest_ |
| 33 |
|
| 34 |
- name: Windows NMake x64 |
| 35 |
os: windows-2022 |
| 36 |
makefile: win32/Makefile.msc |
| 37 |
arch: x86_amd64 |
| 38 |
|
| 39 |
- name: Windows NMake ARM No Test |
| 40 |
os: windows-2022 |
| 41 |
makefile: win32/Makefile.arm |
| 42 |
arch: x86_arm |
| 43 |
|
| 44 |
- name: Windows NMake ARM64 No Test |
| 45 |
os: windows-2022 |
| 46 |
makefile: win32/Makefile.a64 |
| 47 |
arch: x86_arm64 |
| 48 |
|
| 49 |
steps: |
| 50 |
- name: Checkout repository |
| 51 |
uses: actions/checkout@v3 |
| 52 |
|
| 53 |
- name: Setup development environment |
| 54 |
uses: ilammy/[email protected] |
| 55 |
with: |
| 56 |
arch: ${{ matrix.arch }} |
| 57 |
|
| 58 |
- name: Compile source code |
| 59 |
shell: cmd |
| 60 |
run: nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} |
| 61 |
|
| 62 |
- name: Run test cases |
| 63 |
shell: cmd |
| 64 |
|
| 65 |
if: contains(matrix.arch, 'arm') == false |
| 66 |
run: | |
| 67 |
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} test |
| 68 |
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} testdll |