Merge pull request #14 from ernw/takeshixx-master

Merge takeshixx changes into master
This commit is contained in:
hnzlmnn-ernw 2023-03-09 16:05:43 +01:00 committed by GitHub
commit b1c5bf801c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 8 deletions

View file

@ -145,12 +145,15 @@ 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 ::set-output name=NEW_RELEASE::"false"
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 ::set-output name=NEW_RELEASE::"true"

View file

@ -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"

View file

@ -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\" "

View file

@ -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}" \