Merge 2e1121538eed82a8d5c08326b24cdf59b535d888 into 869c79422f1126a9994b756a8ffc7a9405e4946f

This commit is contained in:
sshhsh 2025-07-18 18:19:03 +08:00 committed by GitHub
commit c4d09301b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,3 +50,40 @@ jobs:
with:
files: target/${{ matrix.target }}/release/*.zip
prerelease: ${{ contains(github.ref, '-') }}
update_existing: true
build-mips-nightly:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
target:
- mips-unknown-linux-musl
- mipsel-unknown-linux-musl
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }} -Z build-std
- name: Rename artifacts and compress
run: |
cd target/${{ matrix.target }}/release
mv client phantun_client
mv server phantun_server
zip phantun_${{ matrix.target }}_nightly.zip phantun_client phantun_server
- name: Upload Github Assets
uses: softprops/action-gh-release@v2
with:
files: target/${{ matrix.target }}/release/*.zip
prerelease: ${{ contains(github.ref, '-') }}
update_existing: true