mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	ci: build universal binary for macos (#3711)
* ci: build universal binary for macos * ci: add tauri args * ci: restore rust_target * ci: fallback value for tauri build args * ci: cache yarn
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/app.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/app.yml
									
									
									
									
										vendored
									
									
								
							@@ -43,12 +43,9 @@ jobs:
 | 
			
		||||
          - os: ubuntu-latest
 | 
			
		||||
            arch: x86_64
 | 
			
		||||
            rust_target: x86_64-unknown-linux-gnu
 | 
			
		||||
          - os: macos-latest
 | 
			
		||||
            arch: x86_64
 | 
			
		||||
            rust_target: x86_64-apple-darwin
 | 
			
		||||
          - os: macos-latest
 | 
			
		||||
            arch: aarch64
 | 
			
		||||
            rust_target: aarch64-apple-darwin
 | 
			
		||||
            rust_target: x86_64-apple-darwin,aarch64-apple-darwin
 | 
			
		||||
          - os: windows-latest
 | 
			
		||||
            arch: x86_64
 | 
			
		||||
            rust_target: x86_64-pc-windows-msvc
 | 
			
		||||
@@ -60,13 +57,14 @@ jobs:
 | 
			
		||||
        uses: actions/setup-node@v3
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 18
 | 
			
		||||
          cache: 'yarn'
 | 
			
		||||
      - name: install Rust stable
 | 
			
		||||
        uses: dtolnay/rust-toolchain@stable
 | 
			
		||||
        with:
 | 
			
		||||
          targets: ${{ matrix.config.rust_target }}
 | 
			
		||||
      - uses: Swatinem/rust-cache@v2
 | 
			
		||||
        with:
 | 
			
		||||
          key: ${{ matrix.config.rust_target }}
 | 
			
		||||
          key: ${{ matrix.config.os }}
 | 
			
		||||
      - name: install dependencies (ubuntu only)
 | 
			
		||||
        if: matrix.config.os == 'ubuntu-latest'
 | 
			
		||||
        run: |
 | 
			
		||||
@@ -81,6 +79,7 @@ jobs:
 | 
			
		||||
          TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
 | 
			
		||||
        with:
 | 
			
		||||
          releaseId: ${{ needs.create-release.outputs.release_id }}
 | 
			
		||||
          args: ${{ matrix.config.os == 'macos-latest' && '--target universal-apple-darwin' || '' }}
 | 
			
		||||
 | 
			
		||||
  publish-release:
 | 
			
		||||
    permissions:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user