mirror of
				https://github.com/JonasKruckenberg/tauri-build.git
				synced 2025-10-31 03:03:55 +00:00 
			
		
		
		
	update node version
This commit is contained in:
		
							parent
							
								
									31cf3d35ab
								
							
						
					
					
						commit
						77da3385e8
					
				| @ -28,7 +28,7 @@ jobs: | ||||
|           git config --global user.email "${{ github.event.pusher.email }}" | ||||
|       - uses: actions/setup-node@v4.0.1 | ||||
|         with: | ||||
|           node-version: '16.x' | ||||
|           node-version: 20 | ||||
|           registry-url: 'https://registry.npmjs.org' | ||||
|       - uses: pnpm/action-setup@v2.4.0 | ||||
|         name: Install pnpm | ||||
| @ -60,8 +60,8 @@ jobs: | ||||
|         if: steps.covector.outputs.commandRan == 'version' | ||||
|         with: | ||||
|           token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           title: "Publish New Versions" | ||||
|           commit-message: "publish new versions" | ||||
|           labels: "version updates" | ||||
|           branch: "release" | ||||
|           title: 'Publish New Versions' | ||||
|           commit-message: 'publish new versions' | ||||
|           labels: 'version updates' | ||||
|           branch: 'release' | ||||
|           body: ${{ steps.covector.outputs.change }} | ||||
|  | ||||
							
								
								
									
										66
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										66
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,4 @@ | ||||
| name: "Test" | ||||
| name: 'Test' | ||||
| 
 | ||||
| on: | ||||
|   workflow_dispatch: | ||||
| @ -40,39 +40,39 @@ jobs: | ||||
| 
 | ||||
|     runs-on: ${{ matrix.platform.os }} | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|      | ||||
|     - name: setup node | ||||
|       uses: actions/setup-node@v4 | ||||
|       with: | ||||
|         node-version: 18 | ||||
|       - uses: actions/checkout@v4 | ||||
| 
 | ||||
|     - name: 'Setup Rust' | ||||
|       uses: actions-rs/toolchain@v1 | ||||
|       with: | ||||
|         default: true | ||||
|         override: true | ||||
|         profile: minimal | ||||
|         toolchain: stable | ||||
|         target: ${{ matrix.platform.rust_target }} | ||||
|       - name: setup node | ||||
|         uses: actions/setup-node@v4 | ||||
|         with: | ||||
|           node-version: 20 | ||||
| 
 | ||||
|     - uses: Swatinem/rust-cache@v2 | ||||
|       - name: 'Setup Rust' | ||||
|         uses: actions-rs/toolchain@v1 | ||||
|         with: | ||||
|           default: true | ||||
|           override: true | ||||
|           profile: minimal | ||||
|           toolchain: stable | ||||
|           target: ${{ matrix.platform.rust_target }} | ||||
| 
 | ||||
|     - name: install dependencies (ubuntu only) | ||||
|       if: matrix.platform.os == 'ubuntu-latest' | ||||
|       run: | | ||||
|         sudo apt-get update | ||||
|         sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||||
|       - uses: Swatinem/rust-cache@v2 | ||||
| 
 | ||||
|     - uses: JonasKruckenberg/tauri-build@main | ||||
|       id: tauri_build | ||||
|       with: | ||||
|         target: ${{ matrix.platform.rust_target }} | ||||
|         projectPath: ./test/fixture | ||||
|     - run: | | ||||
|         echo "${{ steps.tauri_build.outputs.artifacts }}" | ||||
|     # The artifacts output can now be used to upload the artifacts | ||||
|     - uses: actions/upload-artifact@v3 | ||||
|       with: | ||||
|         name: artifacts | ||||
|         path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" | ||||
|       - name: install dependencies (ubuntu only) | ||||
|         if: matrix.platform.os == 'ubuntu-latest' | ||||
|         run: | | ||||
|           sudo apt-get update | ||||
|           sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||||
| 
 | ||||
|       - uses: JonasKruckenberg/tauri-build@main | ||||
|         id: tauri_build | ||||
|         with: | ||||
|           target: ${{ matrix.platform.rust_target }} | ||||
|           projectPath: ./test/fixture | ||||
|       - run: | | ||||
|           echo "${{ steps.tauri_build.outputs.artifacts }}" | ||||
|       # The artifacts output can now be used to upload the artifacts | ||||
|       - uses: actions/upload-artifact@v3 | ||||
|         with: | ||||
|           name: artifacts | ||||
|           path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" | ||||
|  | ||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							| @ -4,10 +4,10 @@ A composable action to build your Tauri project. | ||||
| 
 | ||||
| ## Usage | ||||
| 
 | ||||
| As opposed to the offical [tauri-action](https://github.com/tauri-apps/tauri-action) this action is as minimal as possible.  | ||||
| As opposed to the offical [tauri-action](https://github.com/tauri-apps/tauri-action) this action is as minimal as possible. | ||||
| Instead of creating a GitHub release and uploading artifacts all-in-one, it provides outputs to conveniently compose together with other actions such as `actions/upload-artifact`, `actions/download-artifact` or `softprops/action-gh-release`. | ||||
| 
 | ||||
| This action needs both Node.JS and Cargo to be already setup.  | ||||
| This action needs both Node.JS and Cargo to be already setup. | ||||
| 
 | ||||
| ### Minimal | ||||
| 
 | ||||
| @ -39,7 +39,7 @@ jobs: | ||||
|       - name: setup node | ||||
|         uses: actions/setup-node@v1 | ||||
|         with: | ||||
|           node-version: 16 | ||||
|           node-version: 20 | ||||
| 
 | ||||
|       - name: install Rust stable | ||||
|         uses: actions-rs/toolchain@v1 | ||||
| @ -88,7 +88,7 @@ jobs: | ||||
|       - name: setup node | ||||
|         uses: actions/setup-node@v1 | ||||
|         with: | ||||
|           node-version: 16 | ||||
|           node-version: 20 | ||||
| 
 | ||||
|       - name: install Rust stable | ||||
|         uses: actions-rs/toolchain@v1 | ||||
| @ -165,11 +165,11 @@ jobs: | ||||
|     runs-on: ${{ matrix.platform.os }} | ||||
|     steps: | ||||
|     - uses: actions/checkout@v3 | ||||
|      | ||||
| 
 | ||||
|     - name: setup node | ||||
|       uses: actions/setup-node@v3 | ||||
|       with: | ||||
|         node-version: 18 | ||||
|         node-version: 20 | ||||
| 
 | ||||
|     - name: 'Setup Rust' | ||||
|       uses: actions-rs/toolchain@v1 | ||||
|  | ||||
| @ -21,5 +21,5 @@ outputs: | ||||
|   artifacts: | ||||
|     description: 'JSON array of artifact paths produced by the build command' | ||||
| runs: | ||||
|   using: 'node16' | ||||
|   using: 'node20' | ||||
|   main: 'dist/index.js' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user