From 1fd2ef248e7bc463ab7ca516a97412cfe2897d44 Mon Sep 17 00:00:00 2001 From: fpplyd Date: Tue, 15 Jul 2025 11:40:03 +0800 Subject: [PATCH 1/2] open socks feature for reqwest --- .github/workflows/ci.yml | 49 ---------------------------------------- Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a66f34b5..4113ac41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,6 @@ env: CARGO_TERM_COLOR: always jobs: - benchmark: - name: Benchmark - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - - name: Run benchmark - run: make benchmark test: name: Test runs-on: ubuntu-latest @@ -33,18 +24,6 @@ jobs: - name: Run tests run: cargo test - integration_test: - name: Integration Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - - name: Run integration tests - run: make integration_test - build: name: Build ${{ matrix.platform.project }} - ${{ matrix.platform.release_for }} if: github.event.pull_request.draft == false @@ -58,34 +37,6 @@ jobs: bin: codebook-lsp.exe name: codebook-lsp-x86_64-pc-windows-msvc.zip command: build - - release_for: macOS-x86_64 - os: macOS-latest - target: x86_64-apple-darwin - project: codebook-lsp - bin: codebook-lsp - name: codebook-lsp-x86_64-apple-darwin.tar.gz - command: build - - release_for: macOS-aarch64 - os: macOS-latest - target: aarch64-apple-darwin - project: codebook-lsp - bin: codebook-lsp - name: codebook-lsp-aarch64-apple-darwin.tar.gz - command: build - - release_for: Linux-x86_64-Musl - os: ubuntu-latest - target: x86_64-unknown-linux-musl - project: codebook-lsp - bin: codebook-lsp - name: codebook-lsp-x86_64-unknown-linux-musl.tar.gz - command: build - - release_for: Linux-aarch64-Musl - os: ubuntu-latest - target: aarch64-unknown-linux-musl - project: codebook-lsp - bin: codebook-lsp - name: codebook-lsp-aarch64-unknown-linux-musl.tar.gz - command: build runs-on: ${{ matrix.platform.os }} steps: diff --git a/Cargo.toml b/Cargo.toml index e4651f1a..198f38b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ lazy_static = "1.5.0" log = "0.4.22" lru = "0.16" regex = "1.11.1" -reqwest = { version = "0.12.12", default-features = false, features = ["blocking", "rustls-tls", "json"] } +reqwest = { version = "0.12.12", default-features = false, features = ["blocking", "rustls-tls", "json", "socks"] } serde = { version = "1", features = ["derive", "serde_derive"] } serde_json = "1" sha2 = "0.10.6" From feff93984a0a7bc5f824af08d83433967a5377a0 Mon Sep 17 00:00:00 2001 From: fpplyd Date: Tue, 15 Jul 2025 11:56:06 +0800 Subject: [PATCH 2/2] remove 'if' condition in github workflow --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4113ac41..51f83967 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,7 +85,6 @@ jobs: needs: - build - test - if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - name: Download artifacts