nightly and release build with local-tun

This commit is contained in:
zonyitoo
2021-09-02 03:29:22 +08:00
parent c0b0d7c554
commit d553554aa3
4 changed files with 39 additions and 13 deletions

View File

@@ -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

View File

@@ -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