35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
name: Nmap x86
|
|
on:
|
|
workflow_dispatch
|
|
jobs:
|
|
build:
|
|
name: Build Nmap x86
|
|
runs-on: ubuntu-latest
|
|
container: muslcc/x86_64:i686-linux-musl
|
|
steps:
|
|
- name: Install dependencies
|
|
run: apk update && apk add bash git perl make cmake flex bison automake autoconf libtool qemu-arm qemu-aarch64 file texinfo zip
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Build Nmap
|
|
run: $GITHUB_WORKSPACE/build/targets/build_nmap.sh x86
|
|
- name: List build directory
|
|
run: ls -la /build
|
|
- name: List build artifacts
|
|
run: ls -la /output
|
|
- name: Package Nmap
|
|
id: package_nmap
|
|
run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output x86
|
|
- name: List packaged artifacts
|
|
run: ls -la /packaged
|
|
- name: Upload tarball
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL }}
|
|
path: ${{ steps.package_nmap.outputs.PACKAGED_TARBALL_PATH }}
|
|
- name: Upload zip
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
|
|
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
|
|
|