Skip to content

Commit

Permalink
enable local-tun for windows targets
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Apr 26, 2024
1 parent 4c32dcf commit d6f1199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 5 additions & 1 deletion .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -117,7 +121,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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -144,7 +144,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
Expand Down

0 comments on commit d6f1199

Please sign in to comment.