forked from zlib-ng/zlib-ng
-
Notifications
You must be signed in to change notification settings - Fork 12
73 lines (63 loc) · 2.08 KB
/
nmake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: NMake
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
nmake:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows NMake x86
os: windows-2022
makefile: win32/Makefile.msc
arch: x86
- name: Windows NMake x64 compat
os: windows-2022
makefile: win32/Makefile.msc
arch: x86_amd64
additional-args: ZLIB_COMPAT=yes
- name: Windows NMake x64 Symbol Prefix
os: windows-2022
makefile: win32/Makefile.msc
arch: x86_amd64
additional-args: SYMBOL_PREFIX=zTest_
- name: Windows NMake x64 Symbol Prefix Compat
os: windows-2022
makefile: win32/Makefile.msc
arch: x86_amd64
additional-args: ZLIB_COMPAT=yes SYMBOL_PREFIX=zTest_
- name: Windows NMake x64
os: windows-2022
makefile: win32/Makefile.msc
arch: x86_amd64
- name: Windows NMake ARM No Test
os: windows-2022
makefile: win32/Makefile.arm
arch: x86_arm
- name: Windows NMake ARM64 No Test
os: windows-2022
makefile: win32/Makefile.a64
arch: x86_arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
show-progress: 'false'
- name: Setup development environment
uses: ilammy/[email protected]
with:
arch: ${{ matrix.arch }}
- name: Compile source code
shell: cmd
run: nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }}
- name: Run test cases
shell: cmd
# Don't run tests on Windows ARM
if: contains(matrix.arch, 'arm') == false
run: |
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} test
nmake -f ${{ matrix.makefile }} ${{ matrix.additional-args }} testdll