-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Marangi <[email protected]>
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build-windows: | ||
name: Build Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Compile pcre2 | ||
working-directory: mswin32 | ||
run: | | ||
mkdir build-pcre2 | ||
cd build-pcre2 | ||
cmake.exe -A Win32 -G "Visual Studio 16 2019" ..\..\libpcre\ | ||
- name: Build | ||
run: msbuild mswin32/nmap.sln /p:Configuration="Release" | ||
|
||
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: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Deps | ||
run: | | ||
sudo apt install python3-build | ||
# python3-build installed from apt is currently broken | ||
# Workaround is to just update it | ||
# | ||
# Can be dropped eventually once it's correctly handled. | ||
python3 -m pip install --upgrade build | ||
- name: Configure | ||
run: ./configure ${{ matrix.config }} | ||
|
||
- name: Build | ||
run: make | ||
|
||
- name: Check | ||
run: make check | ||
|
||
- name: Install | ||
run: sudo make install |