mirror of
https://github.com/dndx/phantun.git
synced 2025-07-27 11:26:04 +08:00
Merge 2e1121538eed82a8d5c08326b24cdf59b535d888 into 869c79422f1126a9994b756a8ffc7a9405e4946f
This commit is contained in:
commit
c4d09301b8
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
@ -50,3 +50,40 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: target/${{ matrix.target }}/release/*.zip
|
files: target/${{ matrix.target }}/release/*.zip
|
||||||
prerelease: ${{ contains(github.ref, '-') }}
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user