From e268031c5ece8e75fc7269d29bf50b8203e3a64b Mon Sep 17 00:00:00 2001 From: takeshix Date: Wed, 4 Nov 2020 12:38:46 +0100 Subject: [PATCH] Added new workflows --- .github/workflows/build-gdb-aarch64.yml | 38 ----- .github/workflows/build-gdb-armhf.yml | 38 ----- .github/workflows/build-gdb-x86.yml | 30 ---- .github/workflows/build-gdb-x86_64.yml | 30 ---- .github/workflows/build-gdb.yml | 149 ++++++++++++++++++++ .github/workflows/build-nmap-aarch64.yml | 35 ----- .github/workflows/build-nmap-armhf.yml | 35 ----- .github/workflows/build-nmap-x86.yml | 35 ----- .github/workflows/build-nmap-x86_64.yml | 34 ----- .github/workflows/build-nmap.yml | 124 ++++++++++++++++ .github/workflows/build-openssh-aarch64.yml | 25 ---- .github/workflows/build-openssh-armhf.yml | 25 ---- .github/workflows/build-openssh-x86.yml | 25 ---- .github/workflows/build-openssh-x86_64.yml | 25 ---- .github/workflows/build-openssh.yml | 87 ++++++++++++ .github/workflows/build-socat-aarch64.yml | 34 ----- .github/workflows/build-socat-armhf.yml | 34 ----- .github/workflows/build-socat-x86.yml | 27 ---- .github/workflows/build-socat-x86_64.yml | 27 ---- .github/workflows/build-socat.yml | 115 +++++++++++++++ .github/workflows/build-strace-x86_64.yml | 31 ---- .github/workflows/build-tcpdump-aarch64.yml | 31 ---- .github/workflows/build-tcpdump-armhf.yml | 31 ---- .github/workflows/build-tcpdump-x86.yml | 31 ---- .github/workflows/build-tcpdump-x86_64.yml | 31 ---- .github/workflows/build-tcpdump.yml | 87 ++++++++++++ 26 files changed, 562 insertions(+), 652 deletions(-) delete mode 100644 .github/workflows/build-gdb-aarch64.yml delete mode 100644 .github/workflows/build-gdb-armhf.yml delete mode 100644 .github/workflows/build-gdb-x86.yml delete mode 100644 .github/workflows/build-gdb-x86_64.yml create mode 100644 .github/workflows/build-gdb.yml delete mode 100644 .github/workflows/build-nmap-aarch64.yml delete mode 100644 .github/workflows/build-nmap-armhf.yml delete mode 100644 .github/workflows/build-nmap-x86.yml delete mode 100644 .github/workflows/build-nmap-x86_64.yml create mode 100644 .github/workflows/build-nmap.yml delete mode 100644 .github/workflows/build-openssh-aarch64.yml delete mode 100644 .github/workflows/build-openssh-armhf.yml delete mode 100644 .github/workflows/build-openssh-x86.yml delete mode 100644 .github/workflows/build-openssh-x86_64.yml create mode 100644 .github/workflows/build-openssh.yml delete mode 100644 .github/workflows/build-socat-aarch64.yml delete mode 100644 .github/workflows/build-socat-armhf.yml delete mode 100644 .github/workflows/build-socat-x86.yml delete mode 100644 .github/workflows/build-socat-x86_64.yml create mode 100644 .github/workflows/build-socat.yml delete mode 100644 .github/workflows/build-strace-x86_64.yml delete mode 100644 .github/workflows/build-tcpdump-aarch64.yml delete mode 100644 .github/workflows/build-tcpdump-armhf.yml delete mode 100644 .github/workflows/build-tcpdump-x86.yml delete mode 100644 .github/workflows/build-tcpdump-x86_64.yml create mode 100644 .github/workflows/build-tcpdump.yml diff --git a/.github/workflows/build-gdb-aarch64.yml b/.github/workflows/build-gdb-aarch64.yml deleted file mode 100644 index 2fb3bf8..0000000 --- a/.github/workflows/build-gdb-aarch64.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: GDB AARCH64 -on: - workflow_dispatch -jobs: - build: - name: Build GDB AARCH64 - runs-on: ubuntu-latest - container: muslcc/x86_64:aarch64-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: Install build compiler - run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" - env: - ARCH: x86_64-linux-musl - HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl - TEMP: /tmp - USER: 0 - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build GDB - id: build_gdb - run: $GITHUB_WORKSPACE/build/targets/build_gdb.sh aarch64 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} - path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-gdb-armhf.yml b/.github/workflows/build-gdb-armhf.yml deleted file mode 100644 index 0e085fb..0000000 --- a/.github/workflows/build-gdb-armhf.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: GDB ARMHF -on: - workflow_dispatch -jobs: - build: - name: Build GDB 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: Install build compiler - run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" - env: - ARCH: x86_64-linux-musl - HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl - TEMP: /tmp - USER: 0 - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build GDB - id: build_gdb - run: $GITHUB_WORKSPACE/build/targets/build_gdb.sh armhf - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} - path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-gdb-x86.yml b/.github/workflows/build-gdb-x86.yml deleted file mode 100644 index 0c6c5ea..0000000 --- a/.github/workflows/build-gdb-x86.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: GDB x86 -on: - workflow_dispatch -jobs: - build: - name: Build GDB 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 GDB - id: build_gdb - run: $GITHUB_WORKSPACE/build/targets/build_gdb.sh x86 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} - path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-gdb-x86_64.yml b/.github/workflows/build-gdb-x86_64.yml deleted file mode 100644 index 8115b0d..0000000 --- a/.github/workflows/build-gdb-x86_64.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: GDB x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build GDB x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-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 GDB - id: build_gdb - run: $GITHUB_WORKSPACE/build/targets/build_gdb.sh x86_64 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} - path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-gdb.yml b/.github/workflows/build-gdb.yml new file mode 100644 index 0000000..6074e1b --- /dev/null +++ b/.github/workflows/build-gdb.yml @@ -0,0 +1,149 @@ +name: GDB & gdbserver +on: + workflow_dispatch +jobs: + + build-x86: + name: Build GDB & gdbserver x86 + runs-on: ubuntu-latest + container: muslcc/x86_64:i686-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install build compiler + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: x86_64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Install dependencies workaround + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: i686-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Build GDB + id: build_gdb + run: | + export PATH="$PATH:/i686-linux-musl-cross/bin" + $GITHUB_WORKSPACE/build/targets/build_gdb.sh x86 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} + path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} + + build-x86_64: + name: Build GDB & gdbserver x86_64 + runs-on: ubuntu-latest + container: muslcc/x86_64:x86_64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build GDB + id: build_gdb + run: | + $GITHUB_WORKSPACE/build/targets/build_gdb.sh x86_64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} + path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} + + + build-armhf: + name: Build GDB & gdbserver ARMHF + runs-on: ubuntu-latest + container: muslcc/x86_64:arm-linux-musleabihf + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install build compiler + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: x86_64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Install dependencies workaround + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: arm-linux-musleabihf + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Build gdb + id: build_gdb + run: | + export PATH="$PATH:/arm-linux-musleabihf-cross/bin" + $GITHUB_WORKSPACE/build/targets/build_gdb.sh armhf + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} + path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} + + + build-aarch64: + name: Build GDB & gdbserver AARCH64 + runs-on: ubuntu-latest + container: muslcc/x86_64:aarch64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install build compiler + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: x86_64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Install dependencies workaround + run: /bin/sh -c "cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: aarch64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Patch headers + run: | + patch /aarch64-linux-musl-cross/aarch64-linux-musl/include/asm/sigcontext.h < $GITHUB_WORKSPACE/patches/gdb/gdb-aarch64-header-sigcontext-fix.patch + + - name: Build GDB + id: build_gdb + run: | + export PATH="$PATH:/aarch64-linux-musl-cross/bin" + $GITHUB_WORKSPACE/build/targets/build_gdb.sh aarch64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_gdb.outputs.PACKAGED_NAME }} + path: ${{ steps.build_gdb.outputs.PACKAGED_NAME_PATH }} \ No newline at end of file diff --git a/.github/workflows/build-nmap-aarch64.yml b/.github/workflows/build-nmap-aarch64.yml deleted file mode 100644 index 17be34a..0000000 --- a/.github/workflows/build-nmap-aarch64.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Nmap AARCH64 -on: - workflow_dispatch -jobs: - build: - name: Build Nmap AARCH64 - runs-on: ubuntu-latest - container: muslcc/x86_64:aarch64-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 aarch64 - - 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 aarch64 - - 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 }} - diff --git a/.github/workflows/build-nmap-armhf.yml b/.github/workflows/build-nmap-armhf.yml deleted file mode 100644 index 1c16942..0000000 --- a/.github/workflows/build-nmap-armhf.yml +++ /dev/null @@ -1,35 +0,0 @@ -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 }} - diff --git a/.github/workflows/build-nmap-x86.yml b/.github/workflows/build-nmap-x86.yml deleted file mode 100644 index 9b734e4..0000000 --- a/.github/workflows/build-nmap-x86.yml +++ /dev/null @@ -1,35 +0,0 @@ -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 }} - diff --git a/.github/workflows/build-nmap-x86_64.yml b/.github/workflows/build-nmap-x86_64.yml deleted file mode 100644 index 06e42f4..0000000 --- a/.github/workflows/build-nmap-x86_64.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Nmap x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build Nmap x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-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_64 - - 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_64 - - 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 }} diff --git a/.github/workflows/build-nmap.yml b/.github/workflows/build-nmap.yml new file mode 100644 index 0000000..d2d92c7 --- /dev/null +++ b/.github/workflows/build-nmap.yml @@ -0,0 +1,124 @@ +name: Nmap +on: + workflow_dispatch +jobs: + + build-x86: + name: Build Nmap x86 + runs-on: ubuntu-latest + container: muslcc/x86_64:i686-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build Nmap + run: $GITHUB_WORKSPACE/build/targets/build_nmap.sh x86 + + - name: Package Nmap + id: package_nmap + run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output x86 + + - 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 }} + + build-x86_64: + name: Build Nmap x86_64 + runs-on: ubuntu-latest + container: muslcc/x86_64:x86_64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build Nmap + run: $GITHUB_WORKSPACE/build/targets/build_nmap.sh x86_64 + + - name: Package Nmap + id: package_nmap + run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output x86_64 + + - 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 }} + + build-armhf: + name: Build Nmap ARMHF + runs-on: ubuntu-latest + container: muslcc/x86_64:arm-linux-musleabihf + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build Nmap + run: $GITHUB_WORKSPACE/build/targets/build_nmap.sh armhf + + - name: Package Nmap + id: package_nmap + run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output armhf + + - 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 }} + + build-aarch64: + name: Build Nmap AARCH64 + runs-on: ubuntu-latest + container: muslcc/x86_64:aarch64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build Nmap + run: $GITHUB_WORKSPACE/build/targets/build_nmap.sh aarch64 + + - name: Package Nmap + id: package_nmap + run: $GITHUB_WORKSPACE/package/targets/nmap/package.sh /output aarch64 + + - 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 }} \ No newline at end of file diff --git a/.github/workflows/build-openssh-aarch64.yml b/.github/workflows/build-openssh-aarch64.yml deleted file mode 100644 index e13f539..0000000 --- a/.github/workflows/build-openssh-aarch64.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: OpenSSH AARCH64 -on: - workflow_dispatch -jobs: - build: - name: Build OpenSSH AARCH64 - runs-on: ubuntu-latest - container: muslcc/x86_64:aarch64-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 OpenSSH - id: build_openssh - run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh aarch64 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} - path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-openssh-armhf.yml b/.github/workflows/build-openssh-armhf.yml deleted file mode 100644 index 79af80e..0000000 --- a/.github/workflows/build-openssh-armhf.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: OpenSSH ARMHF -on: - workflow_dispatch -jobs: - build: - name: Build OpenSSH 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 OpenSSH - id: build_openssh - run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh armhf - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} - path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-openssh-x86.yml b/.github/workflows/build-openssh-x86.yml deleted file mode 100644 index 3fbd630..0000000 --- a/.github/workflows/build-openssh-x86.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: OpenSSH x86 -on: - workflow_dispatch -jobs: - build: - name: Build OpenSSH 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 OpenSSH - id: build_openssh - run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} - path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-openssh-x86_64.yml b/.github/workflows/build-openssh-x86_64.yml deleted file mode 100644 index 45522c3..0000000 --- a/.github/workflows/build-openssh-x86_64.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: OpenSSH x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build OpenSSH x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-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 OpenSSH - id: build_openssh - run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86_64 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} - path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-openssh.yml b/.github/workflows/build-openssh.yml new file mode 100644 index 0000000..45403dd --- /dev/null +++ b/.github/workflows/build-openssh.yml @@ -0,0 +1,87 @@ +name: OpenSSH +on: + workflow_dispatch +jobs: + build-x86: + name: Build OpenSSH x86 + runs-on: ubuntu-latest + container: muslcc/x86_64:i686-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build OpenSSH + id: build_openssh + run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} + path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} + + build-x86_64: + name: Build OpenSSH x86_64 + runs-on: ubuntu-latest + container: muslcc/x86_64:x86_64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build OpenSSH + id: build_openssh + run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh x86_64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} + path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} + + build-armhf: + name: Build OpenSSH ARMHF + runs-on: ubuntu-latest + container: muslcc/x86_64:arm-linux-musleabihf + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build OpenSSH + id: build_openssh + run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh armhf + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} + path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} + + build-aarch64: + name: Build OpenSSH AARCH64 + runs-on: ubuntu-latest + container: muslcc/x86_64:aarch64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build OpenSSH + id: build_openssh + run: $GITHUB_WORKSPACE/build/targets/build_openssh.sh aarch64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_openssh.outputs.PACKAGED_NAME }} + path: ${{ steps.build_openssh.outputs.PACKAGED_NAME_PATH }} \ No newline at end of file diff --git a/.github/workflows/build-socat-aarch64.yml b/.github/workflows/build-socat-aarch64.yml deleted file mode 100644 index 604c90a..0000000 --- a/.github/workflows/build-socat-aarch64.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: socat AARCH64 -on: - workflow_dispatch -jobs: - build: - name: Build socat AARCH64 - runs-on: ubuntu-latest - container: muslcc/x86_64:aarch64-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: Install testing dependencies - run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl - - name: Install build compiler - run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" - env: - ARCH: x86_64-linux-musl - HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl - TEMP: /tmp - USER: 0 - - name: Checkout - uses: actions/checkout@v2 - - name: Build socat - id: build_socat - run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} - path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-socat-armhf.yml b/.github/workflows/build-socat-armhf.yml deleted file mode 100644 index f83148d..0000000 --- a/.github/workflows/build-socat-armhf.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: socat ARMHF -on: - workflow_dispatch -jobs: - build: - name: Build socat 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: Install testing dependencies - run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl - - name: Install build compiler - run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" - env: - ARCH: x86_64-linux-musl - HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl - TEMP: /tmp - USER: 0 - - name: Checkout - uses: actions/checkout@v2 - - name: Build socat - id: build_socat - run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} - path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-socat-x86.yml b/.github/workflows/build-socat-x86.yml deleted file mode 100644 index 61f54e8..0000000 --- a/.github/workflows/build-socat-x86.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: socat x86 -on: - workflow_dispatch -jobs: - build: - name: Build socat 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: Install testing dependencies - run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl - - name: Checkout - uses: actions/checkout@v2 - - name: Build socat - id: build_socat - run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} - path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-socat-x86_64.yml b/.github/workflows/build-socat-x86_64.yml deleted file mode 100644 index 3692a24..0000000 --- a/.github/workflows/build-socat-x86_64.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: socat x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build socat x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-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: Install testing dependencies - run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl - - name: Checkout - uses: actions/checkout@v2 - - name: Build socat - id: build_socat - run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64 - - name: List build directory - run: ls -la /build - - name: List build artifacts - run: ls -la /output - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} - path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-socat.yml b/.github/workflows/build-socat.yml new file mode 100644 index 0000000..87a6740 --- /dev/null +++ b/.github/workflows/build-socat.yml @@ -0,0 +1,115 @@ +name: socat +on: + workflow_dispatch +jobs: + build-x86: + name: Build socat x86 + runs-on: ubuntu-latest + container: muslcc/x86_64:i686-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install testing dependencies + run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl + + - name: Build socat + id: build_socat + run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} + path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} + + build-x86_64: + name: Build socat x86_64 + runs-on: ubuntu-latest + container: muslcc/x86_64:x86_64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install testing dependencies + run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl + + - name: Build socat + id: build_socat + run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} + path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} + + build-armhf: + name: Build socat ARMHF + runs-on: ubuntu-latest + container: muslcc/x86_64:arm-linux-musleabihf + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install testing dependencies + run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl + + - name: Install build compiler + run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: x86_64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Build socat + id: build_socat + run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} + path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} + + build-aarch64: + name: Build socat AARCH64 + runs-on: ubuntu-latest + container: muslcc/x86_64:aarch64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Install testing dependencies + run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl + + - name: Install build compiler + run: /bin/sh -c "apk update && apk upgrade && apk add --no-cache curl rsync sudo util-linux && cd / && curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz && tar -xf ${ARCH}-cross.tgz && rm ${ARCH}-cross.tgz && cd ${ARCH}-cross" + env: + ARCH: x86_64-linux-musl + HOST: https://more.musl.cc/9.2.1/x86_64-linux-musl + TEMP: /tmp + USER: 0 + + - name: Build socat + id: build_socat + run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_socat.outputs.PACKAGED_NAME }} + path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }} \ No newline at end of file diff --git a/.github/workflows/build-strace-x86_64.yml b/.github/workflows/build-strace-x86_64.yml deleted file mode 100644 index 8ec496e..0000000 --- a/.github/workflows/build-strace-x86_64.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: strace x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build strace x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-linux-musl - steps: - - - name: Build strace - run: | - apk update && apk add git make gawk autoconf automake coreutils - git clone https://github.com/strace/strace - cd strace - git checkout v5.7 - ./bootstrap - export LDFLAGS='-static -pthread' - ./configure - make CFLAGS="-w" -j4 - - - name: List build dir - run: | - pwd - ls -la - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: strace-5.7 - path: /__w/static-toolbox/static-toolbox/strace/strace diff --git a/.github/workflows/build-tcpdump-aarch64.yml b/.github/workflows/build-tcpdump-aarch64.yml deleted file mode 100644 index 5771e6a..0000000 --- a/.github/workflows/build-tcpdump-aarch64.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: tcpdump AARCH64 -on: - workflow_dispatch -jobs: - build: - name: Build tcpdump AARCH64 - runs-on: ubuntu-latest - container: muslcc/x86_64:aarch64-linux-musl - steps: - - - name: Install dependencies - run: apk update && apk add bash git perl make cmake flex bison automake autoconf libtool file texinfo zip wget - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build tcpdump - id: build_tcpdump - run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh aarch64 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} - path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-tcpdump-armhf.yml b/.github/workflows/build-tcpdump-armhf.yml deleted file mode 100644 index f66d8a2..0000000 --- a/.github/workflows/build-tcpdump-armhf.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: tcpdump ARMHF -on: - workflow_dispatch -jobs: - build: - name: Build tcpdump 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 file texinfo zip wget - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build tcpdump - id: build_tcpdump - run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh armhf - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} - path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-tcpdump-x86.yml b/.github/workflows/build-tcpdump-x86.yml deleted file mode 100644 index b071533..0000000 --- a/.github/workflows/build-tcpdump-x86.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: tcpdump x86 -on: - workflow_dispatch -jobs: - build: - name: Build tcpdump 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 file texinfo zip wget - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build tcpdump - id: build_tcpdump - run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh x86 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} - path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-tcpdump-x86_64.yml b/.github/workflows/build-tcpdump-x86_64.yml deleted file mode 100644 index dc60964..0000000 --- a/.github/workflows/build-tcpdump-x86_64.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: tcpdump x86_64 -on: - workflow_dispatch -jobs: - build: - name: Build tcpdump x86_64 - runs-on: ubuntu-latest - container: muslcc/x86_64:x86_64-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 wget - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build tcpdump - id: build_tcpdump - run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh x86_64 - - - name: List build directory - run: ls -la /build - - - name: List build artifacts - run: ls -la /output - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} - path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} diff --git a/.github/workflows/build-tcpdump.yml b/.github/workflows/build-tcpdump.yml new file mode 100644 index 0000000..1990ee9 --- /dev/null +++ b/.github/workflows/build-tcpdump.yml @@ -0,0 +1,87 @@ +name: tcpdump +on: + workflow_dispatch +jobs: + build-x86: + name: Build tcpdump x86 + runs-on: ubuntu-latest + container: muslcc/x86_64:i686-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build tcpdump + id: build_tcpdump + run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh x86 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} + path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} + + build-x86_64: + name: Build tcpdump x86_64 + runs-on: ubuntu-latest + container: muslcc/x86_64:x86_64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build tcpdump + id: build_tcpdump + run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh x86_64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} + path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} + + build-armhf: + name: Build tcpdump ARMHF + runs-on: ubuntu-latest + container: muslcc/x86_64:arm-linux-musleabihf + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build tcpdump + id: build_tcpdump + run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh armhf + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} + path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }} + + build: + name: Build tcpdump AARCH64 + runs-on: ubuntu-latest + container: muslcc/x86_64:aarch64-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apk update && sudo apk add bash && sudo bash build/install_deps_alpine.sh + + - name: Build tcpdump + id: build_tcpdump + run: $GITHUB_WORKSPACE/build/targets/build_tcpdump.sh aarch64 + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME }} + path: ${{ steps.build_tcpdump.outputs.PACKAGED_NAME_PATH }}