Skip to content

Commit

Permalink
www pish
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyperTHC committed Jan 9, 2024
1 parent 692508e commit f5f1de3
Showing 1 changed file with 58 additions and 71 deletions.
129 changes: 58 additions & 71 deletions .github/workflows/stealth-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,89 +9,77 @@ env:
VER: 1.4.42dev2

jobs:
# MacOS:
# runs-on: macos-13
# steps:
# - uses: actions/checkout@v3

# - name: Compile
# run: |
# brew install automake
# ./bootstrap
# ./configure --prefix=/opt --enable-static
# make all
# strip tools/gs-netcat
# (cd tools; tar cfz ../gsocket_macOS.tar.gz gs-netcat gsocket blitz gs-mount gs-sftp gs_funcs gsocket_dso.so.0 gsocket_uchroot_dso.so.0)
# mv tools/gs-netcat gs-netcat_macOS

# - name: Upload gs-netcat to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: gs-netcat_*
# overwrite: true
# file_glob: true
# tag: v${{ env.VER }}
MacOS:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Compile
run: |
brew install automake
./bootstrap
./configure --prefix=/opt --enable-static --enable-stealth
make all
strip tools/gs-netcat
mv tools/gs-netcat gs-netcat_mini-macOS-x86_64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: gsnc
path: tools/gs-netcat_mini-macOS-x86_64

# - name: Upload gsocket to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: gsocket_*
# overwrite: true
# file_glob: true
# tag: v${{ env.VER }}


# # https://github.com/vmactions/openbsd-vm
# OpenBSD:
# env:
# OS: "openbsd"
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v3
# - name: Starting the VM
# uses: vmactions/openbsd-vm@v0
# with:
# usesh: true
# prepare: |
# pkg_add curl
# pkg_add autoconf-2.71
# pkg_add automake-1.16.5
# pkg_add openssl-3.0.8
# pkg_info -Q tar
# pkg_add gcc-11.2.0p3
# pkg_add gmake
# pkg_add tar

# run: |
# curl -SsfL https://www.openssl.org/source/openssl-${OPENSSL_VER:-1.1.1w}.tar.gz | tar -xzf - -C /tmp/
# ( cd /tmp/openssl-${OPENSSL_VER:-1.1.1w} && \
# ./Configure --prefix=/opt no-tests no-dso no-threads no-shared BSD-generic64 && \
# make install_sw )
# rm -rf rm -rf /tmp/openssl-${OPENSSL_VER:-1.1.1w} /opt/bin/openssl /opt/bin/c_rehash
# export AUTOCONF_VERSION=2.71
# export AUTOMAKE_VERSION=1.16
# ./bootstrap
# ./configure --enable-static --prefix=/opt
# make all
# strip tools/gs-netcat
# (cd tools; tar cfz ../gsocket_${{ env.OS }}-x86_x64.tar.gz gs-netcat gsocket blitz gs-mount gs-sftp gs_funcs gsocket_dso.so.0 gsocket_uchroot_dso.so.0)
# mv tools/gs-netcat gs-netcat_${{ env.OS }}-x86_64
OpenBSD:
env:
OS: "openbsd"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Starting the VM
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
pkg_add curl
pkg_add autoconf-2.71
pkg_add automake-1.16.5
pkg_add openssl-3.0.8
pkg_info -Q tar
pkg_add gcc-11.2.0p3
pkg_add gmake
pkg_add tar
run: |
curl -SsfL https://www.openssl.org/source/openssl-${OPENSSL_VER:-1.1.1w}.tar.gz | tar -xzf - -C /tmp/
( cd /tmp/openssl-${OPENSSL_VER:-1.1.1w} && \
./Configure --prefix=/opt no-tests no-dso no-threads no-shared BSD-generic64 && \
make install_sw )
rm -rf rm -rf /tmp/openssl-${OPENSSL_VER:-1.1.1w} /opt/bin/openssl /opt/bin/c_rehash
export AUTOCONF_VERSION=2.71
export AUTOMAKE_VERSION=1.16
./bootstrap
./configure --enable-static --prefix=/opt --enable-stealth
make all
strip tools/gs-netcat
mv tools/gs-netcat gs-netcat_mini-${{ env.OS }}-x86_64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: gsnc
path: tools/gs-netcat_mini-${{ env.OS }}-x86_64

FreeBSD:
env:
OS: "freebsd"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Starting the FreeBSD VM
- name: Starting the VM
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y curl automake autoconf gcc
run: |
curl -SsfL https://www.openssl.org/source/openssl-${OPENSSL_VER:-1.1.1w}.tar.gz | tar -xzf - -C /tmp/
( cd /tmp/openssl-${OPENSSL_VER:-1.1.1w} && \
Expand All @@ -102,13 +90,12 @@ jobs:
./configure --enable-static --prefix=/opt --enable-stealth
make all
strip tools/gs-netcat
mv tools/gs-netcat tools/gs-netcat_mini-freebsd-x86_64
mv tools/gs-netcat gs-netcat_mini-${{ env.OS }}-x86_64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: gsnc
path: tools/gs-netcat_mini-freebsd-x86_64
path: tools/gs-netcat_mini-${{ env.OS }}-x86_64

Linux-Cross-Compile:
strategy:
Expand Down Expand Up @@ -197,7 +184,7 @@ jobs:
path: tools/gs-netcat_mini-linux-${{ matrix.arch }}

deploy:
needs: [Linux-Cross-Compile, FreeBSD]
needs: [Linux-Cross-Compile, MacOS, OpenBSD, FreeBSD]
name: Deploy to gsocket.io
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f5f1de3

Please sign in to comment.