static-toolbox/.github/workflows/build-nmap-armhf.yml

36 lines
1.4 KiB
YAML
Raw Normal View History

name: Nmap ARMHF
on:
workflow_dispatch
jobs:
build:
name: Build Nmap ARMHF
runs-on: ubuntu-latest
container: muslcc/x86_64:armel-linux-musleabihf
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 armhf
- 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 armhf
- 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 }}