Something went wrong. Try again.
Expose HTTP/SSH/TCP services through SSH port forwarding. sandhole.com.br
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178on: push: tags: ["v*.*.*"]
permissions: contents: read
env: RUST_VERSION: "1.99.1" CARGO_INCREMENTAL: "0" CARGO_PROFILE_TEST_DEBUG: "0"
jobs: publish-to-crates-io: name: Publish to crates.io runs-on: ubuntu-24.04 permissions: contents: read id-token: write steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: true - name: Authenticate uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5 id: auth - name: Publish run: cargo publish env: CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
build-linux: strategy: fail-fast: false matrix: include: - runner: ubuntu-24.04 target: x86_64-unknown-linux-musl key: linux-amd64 - runner: ubuntu-24.04-arm target: aarch64-unknown-linux-musl key: linux-arm64 name: Build for ${{ matrix.key }} runs-on: ${{ matrix.runner }} steps: - name: Checkout repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: true - name: Fetch MSRV and add target run: | rustup toolchain install ${RUST_VERSION} rustup override set ${RUST_VERSION} rustup target add ${{ matrix.target }} - name: Install musl tools run: sudo apt-get update && sudo apt-get install -y musl-tools - name: Build run: | cargo build --release --locked --target ${{ matrix.target }} cargo build --release --locked --target ${{ matrix.target }} --package sandhole_udp_over_tcp mkdir dist cp target/${{ matrix.target }}/release/sandhole dist/sandhole-${{ matrix.key }} cp target/${{ matrix.target }}/release/sandhole_udp_over_tcp dist/sandhole_udp_over_tcp-${{ matrix.key }} - name: Upload artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: sandhole-${{ matrix.key }} path: dist
build-macos: strategy: fail-fast: false matrix: include: - runner: macos-26 target: aarch64-apple-darwin key: macos-arm64 name: Build for ${{ matrix.key }} runs-on: ${{ matrix.runner }} steps: - name: Checkout repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: true - name: Fetch MSRV and add target run: | rustup toolchain install ${RUST_VERSION} rustup override set ${RUST_VERSION} rustup target add ${{ matrix.target }} - name: Install lld run: | brew install lld - name: Build run: | cargo build --release --locked --target ${{ matrix.target }} cargo build --release --locked --target ${{ matrix.target }} --package sandhole_udp_over_tcp mkdir dist cp target/${{ matrix.target }}/release/sandhole dist/sandhole-${{ matrix.key }} cp target/${{ matrix.target }}/release/sandhole_udp_over_tcp dist/sandhole_udp_over_tcp-${{ matrix.key }} - name: Upload artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: sandhole-${{ matrix.key }} path: dist
build-windows: strategy: fail-fast: false matrix: include: - runner: windows-latest target: x86_64-pc-windows-msvc key: windows-amd64 name: Build for ${{ matrix.key }} runs-on: ${{ matrix.runner }} steps: - name: Checkout repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: true - name: Fetch MSRV and add target run: | rustup toolchain install ${RUST_VERSION} rustup override set ${RUST_VERSION} rustup target add ${{ matrix.target }} - name: Build shell: bash run: | cargo build --release --locked --target ${{ matrix.target }} cargo build --release --locked --target ${{ matrix.target }} --package sandhole_udp_over_tcp mkdir dist cp target/${{ matrix.target }}/release/sandhole.exe dist/sandhole-${{ matrix.key }}.exe cp target/${{ matrix.target }}/release/sandhole_udp_over_tcp.exe dist/sandhole_udp_over_tcp-${{ matrix.key }}.exe - name: Upload artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: sandhole-${{ matrix.key }} path: dist
create-release-draft: name: Create release draft needs: - build-linux - build-macos - build-windows runs-on: ubuntu-24.04 permissions: contents: write steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: true - name: Download linux-amd64 artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: sandhole-linux-amd64 path: out/ - name: Download linux-arm64 artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: sandhole-linux-arm64 path: out/ - name: Download macos-arm64 artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: sandhole-macos-arm64 path: out/ - name: Download windows-amd64 artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: sandhole-windows-amd64 path: out/ - name: Create release draft with binary assets env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REF_NAME: ${{ github.ref_name }} run: gh release create "${REF_NAME}" ./out/sandhole* --draft --verify-tag