Compare commits
29 commits
Author | SHA1 | Date | |
---|---|---|---|
574763abba | |||
ff74c3de01 | |||
6ea45868db | |||
|
ab7a02f0dd | ||
|
b322d1b36c | ||
|
44979a9703 | ||
|
56b6651677 | ||
|
d7e003190a | ||
|
43b769f5ae | ||
|
57f6229fe3 | ||
|
fd09b1375d | ||
|
e2515272f8 | ||
|
98edf482f8 | ||
|
20ee0f7d17 | ||
|
735d28224e | ||
|
b34b0980ef | ||
|
b1c5bf801c | ||
|
9a8f7c9e1a | ||
|
add382c563 | ||
|
bd887fa3fc | ||
|
a1cd885edc | ||
|
676eeb8f45 | ||
|
5d920d97ab | ||
|
04a2277791 | ||
|
ecf0f96df9 | ||
|
1431466df0 | ||
|
c613b77803 | ||
|
dc233d4f74 | ||
|
bfdc8f494a |
17 changed files with 365 additions and 83 deletions
.forgejo/workflows
README.mdbuild
package/targets/nmap
|
@ -145,15 +145,18 @@ jobs:
|
||||||
run: ls -laR /tmp/releases
|
run: ls -laR /tmp/releases
|
||||||
|
|
||||||
- name: Tag Release
|
- name: Tag Release
|
||||||
|
id: tag_release
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "nmap-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
git fetch --quiet --prune --tags
|
||||||
|
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; then
|
||||||
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
echo ::set-output name=NEW_RELEASE::"false"
|
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
|
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} missing. Starting release creation."
|
||||||
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
|
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
|
||||||
echo ::set-output name=NEW_RELEASE::"true"
|
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
|
@ -113,11 +113,11 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
||||||
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
echo ::set-output name=NEW_RELEASE::"false"
|
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
|
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "openssh-v${{ needs.build-x86.outputs.version }}"
|
git push origin "openssh-v${{ needs.build-x86.outputs.version }}"
|
||||||
echo ::set-output name=NEW_RELEASE::"true"
|
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
235
.forgejo/workflows/build-socat.yml
Normal file
235
.forgejo/workflows/build-socat.yml
Normal file
|
@ -0,0 +1,235 @@
|
||||||
|
name: socat
|
||||||
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
jobs:
|
||||||
|
build-x86:
|
||||||
|
name: Build socat x86
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: muslcc/x86_64:i686-linux-musl
|
||||||
|
outputs:
|
||||||
|
version: "${{ steps.build_socat.outputs.PACKAGED_VERSION }}"
|
||||||
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apk update && sudo apk add bash nodejs git-lfs
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: 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: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
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: docker
|
||||||
|
container: muslcc/x86_64:x86_64-linux-musl
|
||||||
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apk update && sudo apk add bash nodejs git-lfs
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: sudo bash build/install_deps_alpine.sh
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
||||||
|
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
|
build-armhf:
|
||||||
|
name: Build socat ARMHF
|
||||||
|
runs-on: docker
|
||||||
|
container: muslcc/x86_64:arm-linux-musleabihf
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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: http://musl.cc/
|
||||||
|
TEMP: /tmp
|
||||||
|
USER: 0
|
||||||
|
|
||||||
|
- name: Build socat
|
||||||
|
id: build_socat
|
||||||
|
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
||||||
|
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
|
build-aarch64:
|
||||||
|
name: Build socat AARCH64
|
||||||
|
runs-on: docker
|
||||||
|
container: muslcc/x86_64:aarch64-linux-musl
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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: http://musl.cc/
|
||||||
|
TEMP: /tmp
|
||||||
|
USER: 0
|
||||||
|
|
||||||
|
- name: Build socat
|
||||||
|
id: build_socat
|
||||||
|
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
||||||
|
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
|
build-ppc32:
|
||||||
|
name: Build socat powerpc32
|
||||||
|
runs-on: docker
|
||||||
|
container: muslcc/x86_64:powerpc-linux-musl
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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: http://musl.cc/
|
||||||
|
TEMP: /tmp
|
||||||
|
USER: 0
|
||||||
|
|
||||||
|
- name: Build socat
|
||||||
|
id: build_socat
|
||||||
|
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc32
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
||||||
|
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
|
build-ppc64:
|
||||||
|
name: Build socat powerpc64
|
||||||
|
runs-on: docker
|
||||||
|
container: muslcc/x86_64:powerpc64-linux-musl
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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: http://musl.cc/
|
||||||
|
TEMP: /tmp
|
||||||
|
USER: 0
|
||||||
|
|
||||||
|
- name: Build socat
|
||||||
|
id: build_socat
|
||||||
|
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh ppc64
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
||||||
|
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
|
create-release:
|
||||||
|
name: Create socat Release
|
||||||
|
runs-on: docker
|
||||||
|
needs: [build-x86, build-x86_64, build-armhf, build-aarch64, build-ppc32, build-ppc64]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Prepare Environment
|
||||||
|
run: mkdir /tmp/releases
|
||||||
|
|
||||||
|
- name: Download Artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: /tmp/releases
|
||||||
|
|
||||||
|
- name: List Artifacts
|
||||||
|
run: ls -laR /tmp/releases
|
||||||
|
|
||||||
|
- name: Tag Release
|
||||||
|
id: tag_release
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
||||||
|
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
|
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
git tag "socat-v${{ needs.build-x86.outputs.version }}"
|
||||||
|
git push origin "socat-v${{ needs.build-x86.outputs.version }}"
|
||||||
|
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
if: ${{ steps.tag_release.outputs.NEW_RELEASE == 'true' }}
|
||||||
|
with:
|
||||||
|
name: socat-v${{ needs.build-x86.outputs.version }}
|
||||||
|
tag: socat-v${{ needs.build-x86.outputs.version }}
|
||||||
|
artifacts: "/tmp/releases/*/*"
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -1,13 +1,13 @@
|
||||||
name: socat
|
name: strace
|
||||||
on:
|
on:
|
||||||
workflow_dispatch
|
workflow_dispatch
|
||||||
jobs:
|
jobs:
|
||||||
build-x86:
|
build-x86:
|
||||||
name: Build socat x86
|
name: Build strace x86
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: muslcc/x86_64:i686-linux-musl
|
container: muslcc/x86_64:i686-linux-musl
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.build_socat.outputs.PACKAGED_VERSION }}
|
version: ${{ steps.build_strace.outputs.PACKAGED_VERSION }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -18,18 +18,26 @@ jobs:
|
||||||
- name: Install testing dependencies
|
- name: Install testing dependencies
|
||||||
run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl
|
run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl
|
||||||
|
|
||||||
- name: Build socat
|
- name: Install build compiler
|
||||||
id: build_socat
|
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"
|
||||||
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86
|
env:
|
||||||
|
ARCH: x86_64-linux-musl
|
||||||
|
HOST: http://musl.cc/
|
||||||
|
TEMP: /tmp
|
||||||
|
USER: 0
|
||||||
|
|
||||||
|
- name: Build strace
|
||||||
|
id: build_strace
|
||||||
|
run: $GITHUB_WORKSPACE/build/targets/build_strace.sh x86
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
name: ${{ steps.build_strace.outputs.PACKAGED_NAME }}
|
||||||
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
path: ${{ steps.build_strace.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
build-x86_64:
|
build-x86_64:
|
||||||
name: Build socat x86_64
|
name: Build strace x86_64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: muslcc/x86_64:x86_64-linux-musl
|
container: muslcc/x86_64:x86_64-linux-musl
|
||||||
steps:
|
steps:
|
||||||
|
@ -42,18 +50,18 @@ jobs:
|
||||||
- name: Install testing dependencies
|
- name: Install testing dependencies
|
||||||
run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl
|
run: apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yodl
|
||||||
|
|
||||||
- name: Build socat
|
- name: Build strace
|
||||||
id: build_socat
|
id: build_strace
|
||||||
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh x86_64
|
run: $GITHUB_WORKSPACE/build/targets/build_strace.sh x86_64
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
name: ${{ steps.build_strace.outputs.PACKAGED_NAME }}
|
||||||
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
path: ${{ steps.build_strace.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
build-armhf:
|
build-armhf:
|
||||||
name: Build socat ARMHF
|
name: Build strace ARMHF
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: muslcc/x86_64:arm-linux-musleabihf
|
container: muslcc/x86_64:arm-linux-musleabihf
|
||||||
steps:
|
steps:
|
||||||
|
@ -74,18 +82,18 @@ jobs:
|
||||||
TEMP: /tmp
|
TEMP: /tmp
|
||||||
USER: 0
|
USER: 0
|
||||||
|
|
||||||
- name: Build socat
|
- name: Build strace
|
||||||
id: build_socat
|
id: build_strace
|
||||||
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh armhf
|
run: $GITHUB_WORKSPACE/build/targets/build_strace.sh armhf
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
name: ${{ steps.build_strace.outputs.PACKAGED_NAME }}
|
||||||
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
path: ${{ steps.build_strace.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
build-aarch64:
|
build-aarch64:
|
||||||
name: Build socat AARCH64
|
name: Build strace AARCH64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: muslcc/x86_64:aarch64-linux-musl
|
container: muslcc/x86_64:aarch64-linux-musl
|
||||||
steps:
|
steps:
|
||||||
|
@ -106,18 +114,18 @@ jobs:
|
||||||
TEMP: /tmp
|
TEMP: /tmp
|
||||||
USER: 0
|
USER: 0
|
||||||
|
|
||||||
- name: Build socat
|
- name: Build strace
|
||||||
id: build_socat
|
id: build_strace
|
||||||
run: $GITHUB_WORKSPACE/build/targets/build_socat.sh aarch64
|
run: $GITHUB_WORKSPACE/build/targets/build_strace.sh aarch64
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build_socat.outputs.PACKAGED_NAME }}
|
name: ${{ steps.build_strace.outputs.PACKAGED_NAME }}
|
||||||
path: ${{ steps.build_socat.outputs.PACKAGED_NAME_PATH }}
|
path: ${{ steps.build_strace.outputs.PACKAGED_NAME_PATH }}
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
name: Create socat Release
|
name: Create strace Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
|
needs: [build-x86, build-x86_64, build-armhf, build-aarch64]
|
||||||
steps:
|
steps:
|
||||||
|
@ -139,20 +147,20 @@ jobs:
|
||||||
id: tag_release
|
id: tag_release
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
if git rev-list "strace-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
||||||
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
echo "Tag for strace-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
echo ::set-output name=NEW_RELEASE::"false"
|
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
git tag "socat-v${{ needs.build-x86.outputs.version }}"
|
git tag "strace-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "socat-v${{ needs.build-x86.outputs.version }}"
|
git push origin "strace-v${{ needs.build-x86.outputs.version }}"
|
||||||
echo ::set-output name=NEW_RELEASE::"true"
|
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
if: ${{ steps.tag_release.outputs.NEW_RELEASE == 'true' }}
|
if: ${{ steps.tag_release.outputs.NEW_RELEASE == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: socat-v${{ needs.build-x86.outputs.version }}
|
name: strace-v${{ needs.build-x86.outputs.version }}
|
||||||
tag: socat-v${{ needs.build-x86.outputs.version }}
|
tag: strace-v${{ needs.build-x86.outputs.version }}
|
||||||
artifacts: "/tmp/releases/*/*"
|
artifacts: "/tmp/releases/*/*"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -112,11 +112,11 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
||||||
echo "Tag for tcpdump-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
echo "Tag for tcpdump-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
|
||||||
echo ::set-output name=NEW_RELEASE::"false"
|
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
git push origin "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
||||||
echo ::set-output name=NEW_RELEASE::"true"
|
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
|
@ -4,12 +4,13 @@ This repository includes prebuild static binaries and build-recipes for various
|
||||||
|
|
||||||
The Linux versions are compiled with the musl-cross toolchain and the openssl-pm-snapshot fork of OpenSSL in order to support a wide range of SSL/TLS features (Warning: some of them are insecure!).
|
The Linux versions are compiled with the musl-cross toolchain and the openssl-pm-snapshot fork of OpenSSL in order to support a wide range of SSL/TLS features (Warning: some of them are insecure!).
|
||||||
|
|
||||||
Compilation is done automatically with GitHub Actions.
|
Compilation is done automatically with GitHub Actions. The binaries are uploaded to the [release section](https://github.com/ernw/static-toolbox/releases). The artifacts are also available in the artifacts of each GitHub Action. However, there are some limitations:
|
||||||
|
|
||||||
## Current Limitations
|
|
||||||
|
|
||||||
* Downloading of build artifacts in GitHub Ations currently requires a GitHub account
|
* Downloading of build artifacts in GitHub Ations currently requires a GitHub account
|
||||||
* Blobs in build artifacts are zipped by the GitHub frontend by default, even zip files themselves! Build artifact zips may contain other zip files.
|
* Blobs in build artifacts are zipped by the GitHub frontend by default, even zip files themselves! Build artifact zips may contain other zip files.
|
||||||
|
* Build artifacts will expire after some time.
|
||||||
|
|
||||||
|
Therefore, it is recommended to download the binaries from the release section.
|
||||||
|
|
||||||
## Building Status
|
## Building Status
|
||||||
|
|
||||||
|
@ -27,4 +28,4 @@ The following table shows the building status for the current toolset. The follo
|
||||||
|[socat](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22socat%22)||
|
|[socat](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22socat%22)||
|
||||||
|[GDB & gdbserver](https://github.com/ernw/static-toolbox/actions?query=workflow%3AGDB)||
|
|[GDB & gdbserver](https://github.com/ernw/static-toolbox/actions?query=workflow%3AGDB)||
|
||||||
|[tcpdump](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22tcpdump%22)||
|
|[tcpdump](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22tcpdump%22)||
|
||||||
|
|[strace](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22strace%22)||
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function die(){
|
||||||
|
echo "$1"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
if [ $# -ne 1 ];then
|
if [ $# -ne 1 ];then
|
||||||
echo "Missing arch"
|
echo "Missing arch"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
ARCH="${1,,}"
|
ARCH="${1}"
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
x86_64|i686|aarch64)
|
x86_64|i686|aarch64)
|
||||||
ARCH="${ARCH}-linux-musl"
|
ARCH="${ARCH}-linux-musl"
|
||||||
|
@ -20,7 +26,8 @@ case $ARCH in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
HOST=http://musl.cc
|
HOST=http://musl.cc
|
||||||
|
echo "Fetching ${HOST}/${ARCH}-cross.tgz"
|
||||||
cd /
|
cd /
|
||||||
curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz
|
curl -so ${ARCH}-cross.tgz ${HOST}/${ARCH}-cross.tgz || die "Failed to download build compiler package"
|
||||||
tar -xf ${ARCH}-cross.tgz
|
tar -xf ${ARCH}-cross.tgz || die "Failed to extract build compiler package"
|
||||||
rm ${ARCH}-cross.tgz
|
rm ${ARCH}-cross.tgz || die "Failed to remove build compiler package"
|
|
@ -13,6 +13,8 @@ apk add \
|
||||||
libtool \
|
libtool \
|
||||||
qemu-arm \
|
qemu-arm \
|
||||||
qemu-aarch64 \
|
qemu-aarch64 \
|
||||||
|
qemu-ppc \
|
||||||
|
qemu-ppc64 \
|
||||||
file \
|
file \
|
||||||
texinfo \
|
texinfo \
|
||||||
zip \
|
zip \
|
||||||
|
|
22
build/lib.sh
22
build/lib.sh
|
@ -47,6 +47,10 @@ get_host_triple(){
|
||||||
host="arm-linux-musleabihf"
|
host="arm-linux-musleabihf"
|
||||||
elif [ "$CURRENT_ARCH" == "aarch64" ];then
|
elif [ "$CURRENT_ARCH" == "aarch64" ];then
|
||||||
host="aarch64-linux-musl"
|
host="aarch64-linux-musl"
|
||||||
|
elif [ "$CURRENT_ARCH" == "ppc32" ];then
|
||||||
|
host="powerpc-linux-musl"
|
||||||
|
elif [ "$CURRENT_ARCH" == "ppc64" ];then
|
||||||
|
host="powerpc64-linux-musl"
|
||||||
fi
|
fi
|
||||||
echo $host
|
echo $host
|
||||||
}
|
}
|
||||||
|
@ -145,6 +149,20 @@ get_version(){
|
||||||
else
|
else
|
||||||
echo "qemu-aarch64 not found, skipping AARCH64 version checks." >&2
|
echo "qemu-aarch64 not found, skipping AARCH64 version checks." >&2
|
||||||
fi
|
fi
|
||||||
|
elif [ "$CURRENT_ARCH" == "ppc32" ];then
|
||||||
|
if which qemu-ppc 1>&2 2>/dev/null;then
|
||||||
|
cmd="qemu-ppc ${cmd}"
|
||||||
|
version+=$(eval "$cmd")
|
||||||
|
else
|
||||||
|
echo "qemu-ppc not found, skipping ppc32 version checks." >&2
|
||||||
|
fi
|
||||||
|
elif [ "$CURRENT_ARCH" == "ppc64" ];then
|
||||||
|
if which qemu-ppc64 1>&2 2>/dev/null;then
|
||||||
|
cmd="qemu-ppc64 ${cmd}"
|
||||||
|
version+=$(eval "$cmd")
|
||||||
|
else
|
||||||
|
echo "qemu-ppc64 not found, skipping ppc64 version checks." >&2
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
version+=$(eval "$cmd")
|
version+=$(eval "$cmd")
|
||||||
fi
|
fi
|
||||||
|
@ -214,6 +232,10 @@ lib_build_openssl(){
|
||||||
openssl_arch="linux-x86_64"
|
openssl_arch="linux-x86_64"
|
||||||
elif [ "${CURRENT_ARCH}" == "aarch64" ];then
|
elif [ "${CURRENT_ARCH}" == "aarch64" ];then
|
||||||
openssl_arch="linux-generic64"
|
openssl_arch="linux-generic64"
|
||||||
|
elif [ "${CURRENT_ARCH}" == "ppc32" ];then
|
||||||
|
openssl_arch="linux-ppc"
|
||||||
|
elif [ "${CURRENT_ARCH}" == "ppc64" ];then
|
||||||
|
openssl_arch="linux-ppc"
|
||||||
fi
|
fi
|
||||||
CFLAGS="${GCC_OPTS}" \
|
CFLAGS="${GCC_OPTS}" \
|
||||||
./Configure \
|
./Configure \
|
||||||
|
|
|
@ -18,8 +18,7 @@ build_gdb() {
|
||||||
fetch "$GIT_BINUTILS_GDB" "${BUILD_DIRECTORY}/binutils-gdb" git
|
fetch "$GIT_BINUTILS_GDB" "${BUILD_DIRECTORY}/binutils-gdb" git
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/" || { echo "Cannot cd to ${BUILD_DIRECTORY}/binutils-gdb/"; exit 1; }
|
cd "${BUILD_DIRECTORY}/binutils-gdb/" || { echo "Cannot cd to ${BUILD_DIRECTORY}/binutils-gdb/"; exit 1; }
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
git checkout gdb-10.1-release
|
git checkout gdb-12.1-release
|
||||||
|
|
||||||
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
||||||
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
||||||
CMD+="LDFLAGS=\"-static\" "
|
CMD+="LDFLAGS=\"-static\" "
|
||||||
|
@ -52,9 +51,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/gdb_build/gdbserver/gdbserver" "${OUTPUT_DIRECTORY}/gdbserver${GDBSERVER_VERSION}"
|
cp "${BUILD_DIRECTORY}/gdb_build/gdbserver/gdbserver" "${OUTPUT_DIRECTORY}/gdbserver${GDBSERVER_VERSION}"
|
||||||
echo "[+] Finished building GDB ${CURRENT_ARCH}"
|
echo "[+] Finished building GDB ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"gdb${GDB_VERSION}"
|
echo "PACKAGED_NAME=gdb${GDB_VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
|
echo "PACKAGED_NAME_PATH=/output/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -17,7 +17,7 @@ init_lib $1
|
||||||
build_openssh() {
|
build_openssh() {
|
||||||
fetch "https://github.com/openssh/openssh-portable.git" "${BUILD_DIRECTORY}/openssh-portable" git
|
fetch "https://github.com/openssh/openssh-portable.git" "${BUILD_DIRECTORY}/openssh-portable" git
|
||||||
cd "${BUILD_DIRECTORY}/openssh-portable"
|
cd "${BUILD_DIRECTORY}/openssh-portable"
|
||||||
git checkout V_8_6_P1
|
git checkout V_9_1_P1
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
CC="gcc ${GCC_OPTS}" \
|
CC="gcc ${GCC_OPTS}" \
|
||||||
|
@ -49,9 +49,9 @@ main() {
|
||||||
echo "[+] Finished building OpenSSH ${CURRENT_ARCH}"
|
echo "[+] Finished building OpenSSH ${CURRENT_ARCH}"
|
||||||
|
|
||||||
OPENSSH_VERSION=$(echo $OPENSSH_VERSION | sed 's/-//')
|
OPENSSH_VERSION=$(echo $OPENSSH_VERSION | sed 's/-//')
|
||||||
echo ::set-output name=PACKAGED_NAME::"${OPENSSH_VERSION}"
|
echo "PACKAGED_NAME=${OPENSSH_VERSION} >> $GITHUB_OUTPUT"
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
|
echo "PACKAGED_NAME_PATH=/output/* >> $GITHUB_OUTPUT"
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number} >> $GITHUB_OUTPUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -4,7 +4,7 @@ if [ -z "$GITHUB_WORKSPACE" ];then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ "$#" -ne 1 ];then
|
if [ "$#" -ne 1 ];then
|
||||||
echo "Usage: ${0} [x86|x86_64|armhf|aarch64]"
|
echo "Usage: ${0} [x86|x86_64|armhf|aarch64|ppc32|ppc64]"
|
||||||
echo "Example: ${0} x86_64"
|
echo "Example: ${0} x86_64"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -41,9 +41,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/socat/socat" "${OUTPUT_DIRECTORY}/socat${version}"
|
cp "${BUILD_DIRECTORY}/socat/socat" "${OUTPUT_DIRECTORY}/socat${version}"
|
||||||
echo "[+] Finished building socat ${CURRENT_ARCH}"
|
echo "[+] Finished building socat ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"socat${version}"
|
echo "PACKAGED_NAME=socat${version}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -10,34 +10,39 @@ fi
|
||||||
source $GITHUB_WORKSPACE/build/lib.sh
|
source $GITHUB_WORKSPACE/build/lib.sh
|
||||||
init_lib "$1"
|
init_lib "$1"
|
||||||
|
|
||||||
|
VERSION="v6.3"
|
||||||
|
|
||||||
build_strace() {
|
build_strace() {
|
||||||
fetch "https://github.com/strace/strace" "${BUILD_DIRECTORY}/strace" git
|
fetch "https://github.com/strace/strace" "${BUILD_DIRECTORY}/strace" git
|
||||||
cd "${BUILD_DIRECTORY}/strace"
|
cd "${BUILD_DIRECTORY}/strace"
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
git checkout v5.7
|
git checkout "$VERSION"
|
||||||
./bootstrap
|
./bootstrap
|
||||||
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
||||||
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
||||||
CMD+="LDFLAGS=\"-static -pthread\" "
|
CMD+="LDFLAGS=\"-static -pthread\" "
|
||||||
if [ "$CURRENT_ARCH" != "x86" ] && [ "$CURRENT_ARCH" != "x86_64" ];then
|
if [ "$CURRENT_ARCH" != "x86_64" ];then
|
||||||
CMD+="CC_FOR_BUILD=\"/i686-linux-musl-cross/bin/i686-linux-musl-gcc\" "
|
CMD+="CC_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc\" "
|
||||||
CMD+="CPP_FOR_BUILD=\"/i686-linux-musl-cross/bin/i686-linux-musl-g++\" "
|
CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++ -E\" "
|
||||||
|
CMD+="CXX_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" "
|
||||||
fi
|
fi
|
||||||
CMD+="./configure --host=i486-linux-musl --target=$(get_host_triple)"
|
CMD+="./configure --disable-mpers --host=$(get_host_triple)"
|
||||||
eval "$CMD"
|
eval "$CMD"
|
||||||
make CFLAGS="-w" -j4
|
make CFLAGS="-w" -j4
|
||||||
strip strace
|
strip "${BUILD_DIRECTORY}/strace/src/strace"
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
build_strace
|
build_strace
|
||||||
local version
|
local version
|
||||||
version=$(get_version "${BUILD_DIRECTORY}/strace/strace --version 2>&1 | head -n1 | awk '{print \$4}'")
|
version=$(get_version "${BUILD_DIRECTORY}/strace/src/strace -V 2>&1 | head -n1 | awk '{print \$4}'")
|
||||||
cp "${BUILD_DIRECTORY}/strace/strace" "${OUTPUT_DIRECTORY}/strace"
|
version_number=$(echo "$version" | cut -d"-" -f2)
|
||||||
|
cp "${BUILD_DIRECTORY}/strace/src/strace" "${OUTPUT_DIRECTORY}/strace${version}"
|
||||||
echo "[+] Finished building strace ${CURRENT_ARCH}"
|
echo "[+] Finished building strace ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"strace${version}"
|
echo "PACKAGED_NAME=strace${version}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
|
||||||
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -39,9 +39,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
|
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
|
||||||
echo "[+] Finished building tcpdump ${CURRENT_ARCH}"
|
echo "[+] Finished building tcpdump ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"tcpdump${version}"
|
echo "PACKAGED_NAME=tcpdump${version}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -50,8 +50,8 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/tcpreplay/tcpreplay" "${OUTPUT_DIRECTORY}/tcpreplay"
|
cp "${BUILD_DIRECTORY}/tcpreplay/tcpreplay" "${OUTPUT_DIRECTORY}/tcpreplay"
|
||||||
echo "[+] Finished building tcpreplay ${CURRENT_ARCH}"
|
echo "[+] Finished building tcpreplay ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"tcpreplay${version}"
|
echo "PACKAGED_NAME=tcpreplay${version}"
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -53,13 +53,13 @@ cd "$tmp_dir"
|
||||||
TARBALL="nmap-${version}-${arch}-portable.tar.gz"
|
TARBALL="nmap-${version}-${arch}-portable.tar.gz"
|
||||||
tar czf "${output}/${TARBALL}" -C "$tmp_dir" .
|
tar czf "${output}/${TARBALL}" -C "$tmp_dir" .
|
||||||
cp "${output}/${TARBALL}" /packaged
|
cp "${output}/${TARBALL}" /packaged
|
||||||
echo ::set-output name=PACKAGED_TARBALL::${TARBALL}
|
echo "PACKAGED_TARBALL=${TARBALL}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_TARBALL_PATH::"/packaged/${TARBALL}"
|
echo "PACKAGED_TARBALL_PATH=/packaged/${TARBALL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
ZIP="nmap-${version}-${arch}-portable.zip"
|
ZIP="nmap-${version}-${arch}-portable.zip"
|
||||||
zip -r -q "${output}/${ZIP}" .
|
zip -r -q "${output}/${ZIP}" .
|
||||||
cp "${output}/${ZIP}" /packaged
|
cp "${output}/${ZIP}" /packaged
|
||||||
echo ::set-output name=PACKAGED_ZIP::${ZIP}
|
echo "PACKAGED_ZIP=${ZIP}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}"
|
echo "PACKAGED_ZIP_PATH=/packaged/${ZIP}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_VERSION::${version}
|
echo "PACKAGED_VERSION=${version}" >> $GITHUB_OUTPUT
|
Loading…
Add table
Add a link
Reference in a new issue