mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[GitHub CI] Build shadowsocks-rust
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -14,6 +14,11 @@ jobs:
|
||||
- name: C++
|
||||
uses: msys2/setup-msys2@v2
|
||||
|
||||
- name: Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
||||
|
||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -17,6 +17,11 @@ jobs:
|
||||
- name: C++
|
||||
uses: msys2/setup-msys2@v2
|
||||
|
||||
- name: Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
||||
- name: MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
||||
|
||||
24
Other/shadowsocks-rust/build.ps1
Normal file
24
Other/shadowsocks-rust/build.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
git clone https://github.com/shadowsocks/shadowsocks-rust -b 'v1.11.2' src
|
||||
if ( -Not $? ) {
|
||||
Pop-Location
|
||||
exit $lastExitCode
|
||||
}
|
||||
Push-Location src
|
||||
|
||||
cargo build --release
|
||||
if ( -Not $? ) {
|
||||
Pop-Location
|
||||
|
||||
rm -Recurse -Force src
|
||||
exit $lastExitCode
|
||||
}
|
||||
|
||||
cp -Force '.target\release\sslocal.exe' '..\release\ss-local.exe'
|
||||
|
||||
Pop-Location
|
||||
rm -Recurse -Force src
|
||||
|
||||
Pop-Location
|
||||
exit $lastExitCode
|
||||
0
Other/shadowsocks-rust/deps.ps1
Normal file
0
Other/shadowsocks-rust/deps.ps1
Normal file
Reference in New Issue
Block a user