Skip to content

Commit 2409fb8

Browse files
authored
feat(proxy): add shadowsocks inbound support (#813)
* move ss outbound into folder * some refactoring * wip * up * up * add tests * typo * f * up * up * up * up * up * up * up * fmt * up * up * up * t * up * up * t * dep * up * up * up * up * up --------- Signed-off-by: Yuwei Ba <[email protected]>
1 parent 21f8807 commit 2409fb8

File tree

47 files changed

+2472
-1413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2472
-1413
lines changed

.github/workflows/coverage.yml

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Coverage
22

33
on:
44
push:
5-
tags: ["v*"]
6-
branches: ["master"]
5+
tags: [ "v*" ]
6+
branches: [ "master" ]
77
pull_request:
8-
branches: ["master"]
8+
branches: [ "master" ]
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -14,45 +14,47 @@ concurrency:
1414
jobs:
1515
compile:
1616
name: Coverage
17-
runs-on: 'ubuntu-latest'
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
os: [ 'macos-14', 'windows-latest', 'ubuntu-latest' ]
1821
steps:
19-
- uses: actions/checkout@v4
20-
with:
21-
submodules: true
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true
2225

23-
- uses: actions/cache@v4
24-
with:
25-
path: |
26-
~/.cargo/registry
27-
~/.cargo/git
28-
~/.cargo/bin/
29-
~/.cargo/registry/index/
30-
~/.cargo/registry/cache/
31-
~/.cargo/git/db/
32-
key: coverage-${{ hashFiles('**/Cargo.toml') }}
26+
- uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.cargo/registry
30+
~/.cargo/git
31+
~/.cargo/bin/
32+
~/.cargo/registry/index/
33+
~/.cargo/registry/cache/
34+
~/.cargo/git/db/
35+
key: coverage-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.os }}
3336

34-
- name: Install cargo-llvm-cov
35-
uses: taiki-e/install-action@cargo-llvm-cov
36-
- name: Install Protoc
37-
uses: arduino/setup-protoc@v3
38-
with:
39-
version: "23.x"
40-
repo-token: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Install cargo-llvm-cov
38+
uses: taiki-e/install-action@cargo-llvm-cov
39+
- name: Install Protoc
40+
uses: arduino/setup-protoc@v3
41+
with:
42+
version: "23.x"
43+
repo-token: ${{ secrets.GITHUB_TOKEN }}
4144

42-
- name: Cargo test and coverage
43-
uses: clechasseur/rs-cargo@v3
44-
with:
45-
tool: cross
46-
command: 'llvm-cov'
47-
args: --workspace --exclude clash_ffi -F "plus" --codecov --output-path codecov.json
48-
env:
49-
CROSS_CONTAINER_OPTS: "--network host"
50-
CLASH_DOCKER_TEST: 'true'
45+
- name: Cargo test and coverage
46+
uses: clechasseur/rs-cargo@v3
47+
with:
48+
tool: cross
49+
command: 'llvm-cov'
50+
args: --workspace --exclude clash_ffi -F "plus" --codecov --output-path codecov.json
51+
env:
52+
CROSS_CONTAINER_OPTS: "--network host"
53+
CLASH_DOCKER_TEST: ${{ startsWith(matrix.os, 'ubuntu') && 'true' || 'false' }}
5154

52-
- name: Upload coverage to Codecov
53-
uses: codecov/codecov-action@v5
54-
if: ${{ !cancelled() }}
55-
with:
56-
token: ${{ secrets.CODECOV_TOKEN }}
57-
files: codecov.json
58-
fail_ci_if_error: true
55+
- name: Upload coverage to Codecov
56+
uses: codecov/codecov-action@v5
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
files: codecov.json
60+
fail_ci_if_error: true

0 commit comments

Comments
 (0)