Fix e2e: real SOCKS5 CONNECT through tunnel, not local port check #46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - goos: linux | |
| goarch: amd64 | |
| suffix: linux-amd64 | |
| - goos: linux | |
| goarch: arm64 | |
| suffix: linux-arm64 | |
| - goos: darwin | |
| goarch: amd64 | |
| suffix: darwin-amd64 | |
| - goos: darwin | |
| goarch: arm64 | |
| suffix: darwin-arm64 | |
| - goos: windows | |
| goarch: amd64 | |
| suffix: windows-amd64.exe | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| CGO_ENABLED: '0' | |
| run: go build -ldflags="-s -w" -o findns-${{ matrix.suffix }} ./cmd | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: findns-${{ matrix.suffix }} | |
| path: findns-${{ matrix.suffix }} | |
| build-slipstream: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake pkg-config libssl-dev git | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Clone slipstream-rust | |
| run: git clone --recursive https://github.com/Mygod/slipstream-rust.git /tmp/slipstream-rust | |
| - name: Build slipstream-client | |
| working-directory: /tmp/slipstream-rust | |
| env: | |
| PICOQUIC_AUTO_BUILD: '1' | |
| run: cargo build -p slipstream-client --release | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: slipstream-client-linux-amd64 | |
| path: /tmp/slipstream-rust/target/release/slipstream-client | |
| release: | |
| needs: [build, build-slipstream] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| merge-multiple: true | |
| - name: Rename slipstream binary | |
| run: | | |
| mv artifacts/slipstream-client artifacts/slipstream-client-linux-amd64 2>/dev/null || true | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifacts/* | |
| generate_release_notes: true |