mirror of
				https://github.com/dndx/phantun.git
				synced 2025-11-04 20:05:35 +08:00 
			
		
		
		
	chore(release): add nightly build for MIPS targets (#212)
--------- Co-authored-by: Datong Sun <dndx@idndx.com>
This commit is contained in:
		
							
								
								
									
										38
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										38
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -50,3 +50,41 @@ 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
 | 
			
		||||
          - mips64-unknown-linux-muslabi64
 | 
			
		||||
          - 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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user