mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
Update On Fri Apr 26 20:27:55 CEST 2024
This commit is contained in:
+1
-1
@@ -44,6 +44,6 @@ jobs:
|
||||
run: cargo build --verbose --features "local-http-rustls local-redir local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect"
|
||||
- name: Build with All Features Enabled (Windows)
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
run: cargo build --verbose --features "local-http-rustls local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect winservice"
|
||||
run: cargo build --verbose --features "local-http-rustls local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-extra aead-cipher-2022 aead-cipher-2022-extra security-replay-attack-detect winservice"
|
||||
- name: Build with All Features Enabled - shadowsocks
|
||||
run: cargo build --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --features "stream-cipher aead-cipher-2022"
|
||||
|
||||
@@ -42,6 +42,10 @@ jobs:
|
||||
compile_features="-f local-redir -f local-tun"
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == *"-windows-"* ]]; then
|
||||
compile_features="-f winservice -f local-tun"
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
sudo apt-get update -y && sudo apt-get install -y upx;
|
||||
if [[ "$?" == "0" ]]; then
|
||||
@@ -79,6 +83,10 @@ jobs:
|
||||
brew install gnu-tar
|
||||
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
|
||||
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
@@ -107,6 +115,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ilammy/setup-nasm@v1
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
@@ -117,7 +129,7 @@ jobs:
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
pwsh ./build/build-host-release.ps1 winservice
|
||||
pwsh ./build/build-host-release.ps1 "winservice local-tun"
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
+10
-2
@@ -59,7 +59,7 @@ jobs:
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == *"-windows-"* ]]; then
|
||||
compile_features="-f winservice"
|
||||
compile_features="-f winservice -f local-tun"
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
@@ -103,6 +103,10 @@ jobs:
|
||||
brew install gnu-tar
|
||||
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
|
||||
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
@@ -134,6 +138,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ilammy/setup-nasm@v1
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
@@ -144,7 +152,7 @@ jobs:
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
pwsh ./build/build-host-release.ps1 winservice
|
||||
pwsh ./build/build-host-release.ps1 "winservice local-tun"
|
||||
|
||||
- name: Upload Github Assets
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
||||
+5
-1
@@ -25,6 +25,10 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- if: ${{ runner.os == 'Windows' }}
|
||||
uses: ilammy/setup-nasm@v1
|
||||
- name: Install Protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Install Rust
|
||||
run: |
|
||||
rustup set profile minimal
|
||||
@@ -36,7 +40,7 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: |
|
||||
--features "local-http-rustls local-redir local-flow-stat local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-2022" -- -Z macro-backtrace
|
||||
--features "local-http-rustls local-redir local-flow-stat local-dns local-tun local-fake-dns dns-over-tls dns-over-https stream-cipher aead-cipher-2022" -- -Z macro-backtrace
|
||||
-W clippy::absurd_extreme_comparisons
|
||||
-W clippy::erasing_op
|
||||
-A clippy::collapsible_else_if
|
||||
|
||||
Reference in New Issue
Block a user