mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
nightly and release build with local-tun
This commit is contained in:
12
.github/workflows/build-nightly-release.yml
vendored
12
.github/workflows/build-nightly-release.yml
vendored
@@ -26,8 +26,18 @@ jobs:
|
||||
- name: Build ${{ matrix.target }}
|
||||
timeout-minutes: 120
|
||||
run: |
|
||||
compile_target=${{ matrix.target }}
|
||||
|
||||
if [[ "$compile_target" == *"-linux-"* || "$compile_target" == *"-apple-"* ]]; then
|
||||
compile_features="-f local-redir -f local-tun"
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
compile_compress="-u"
|
||||
fi
|
||||
|
||||
cd build
|
||||
./build-release -t ${{ matrix.target }}
|
||||
./build-release -t ${{ matrix.target }} $compile_features $compile_compress
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
|
||||
12
.github/workflows/build-release.yml
vendored
12
.github/workflows/build-release.yml
vendored
@@ -38,8 +38,18 @@ jobs:
|
||||
- name: Build ${{ matrix.target }}
|
||||
timeout-minutes: 120
|
||||
run: |
|
||||
compile_target=${{ matrix.target }}
|
||||
|
||||
if [[ "$compile_target" == *"-linux-"* || "$compile_target" == *"-apple-"* ]]; then
|
||||
compile_features="-f local-redir -f local-tun"
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
compile_compress="-u"
|
||||
fi
|
||||
|
||||
cd build
|
||||
./build-release -t ${{ matrix.target }}
|
||||
./build-release -t ${{ matrix.target }} $compile_features $compile_compress
|
||||
|
||||
- name: Upload Github Assets
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
||||
Reference in New Issue
Block a user