-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (71 loc) · 1.82 KB
/
build.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Build
on:
push:
pull_request:
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Checkout
uses: actions/checkout@v4
with:
path: nmap
- name: Checkout mswin32-aux
run: svn checkout https://svn.nmap.org/nmap-mswin32-aux
- name: Prepare pcre2
working-directory: nmap\mswin32
run: |
mkdir build-pcre2
cd build-pcre2
cmake.exe -A Win32 ..\..\libpcre\
- name: Build
working-directory: nmap\mswin32
run: |
msbuild nmap.sln /p:Configuration="Release"
build-macos:
name: Build Macos
runs-on: macos-latest
steps:
- name: Install Deps
run: |
# Use MacOS python instead of brew variant
brew unlink python
pip install build setuptools
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: ./configure --with-openssl="/opt/homebrew/opt/openssl@3"
- name: Build
run: make
- name: Check
run: make check
build-ubuntu:
name: Build Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
config:
- "--without-openssl"
- "--without-libssh2"
- "--without-liblua"
- "--without-zenmap"
- "--without-ndiff"
- "--with-nping"
- "--with-ncat"
steps:
- name: Install Deps
run: |
pip install build
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: ./configure ${{ matrix.config }}
- name: Build
run: make
- name: Check
run: make check
- name: Install
run: sudo make install