socks-hub 0.2.7

Convert http proxy or socks5 proxy to socks5 proxy.
Documentation
name: Push or PR

on:
  push:
    branches:
      - "**"
    tags-ignore: ["*"]
  pull_request:
    branches:
      - "**"
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always

jobs:
  build_n_test:
    if: github.ref_type != 'tag'
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt
      - name: rustfmt
        run: cargo fmt --all -- --check
      - name: check
        run: cargo check --verbose
      - name: clippy
        run: cargo clippy --all-targets --all-features -- -D warnings
      - name: Build
        run: cargo build --verbose --examples --tests --all-features
      - name: Test
        run: |
          python3 genacl_proxy_gfw_bypass_china_ip.py
          cargo test --all-features --verbose
      - name: Smoke tests
        if: runner.os != 'Windows'
        run: |
          cargo build --verbose --bin socks-hub --all-features
          python3 scripts/smoke_tcp_chain.py
          python3 scripts/smoke_tcp_direct.py
          python3 scripts/smoke_udp_chain.py
          python3 scripts/smoke_udp_direct.py