mirror of
				https://github.com/JonasKruckenberg/tauri-build.git
				synced 2025-10-31 16:13:55 +00:00 
			
		
		
		
	update node version
This commit is contained in:
		
							parent
							
								
									b2f818a386
								
							
						
					
					
						commit
						07247e9b95
					
				| @ -28,7 +28,7 @@ jobs: | |||||||
|           git config --global user.email "${{ github.event.pusher.email }}" |           git config --global user.email "${{ github.event.pusher.email }}" | ||||||
|       - uses: actions/setup-node@v4.0.1 |       - uses: actions/setup-node@v4.0.1 | ||||||
|         with: |         with: | ||||||
|           node-version: '16.x' |           node-version: 20 | ||||||
|           registry-url: 'https://registry.npmjs.org' |           registry-url: 'https://registry.npmjs.org' | ||||||
|       - uses: pnpm/action-setup@v2.4.0 |       - uses: pnpm/action-setup@v2.4.0 | ||||||
|         name: Install pnpm |         name: Install pnpm | ||||||
| @ -60,8 +60,8 @@ jobs: | |||||||
|         if: steps.covector.outputs.commandRan == 'version' |         if: steps.covector.outputs.commandRan == 'version' | ||||||
|         with: |         with: | ||||||
|           token: ${{ secrets.GITHUB_TOKEN }} |           token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|           title: "Publish New Versions" |           title: 'Publish New Versions' | ||||||
|           commit-message: "publish new versions" |           commit-message: 'publish new versions' | ||||||
|           labels: "version updates" |           labels: 'version updates' | ||||||
|           branch: "release" |           branch: 'release' | ||||||
|           body: ${{ steps.covector.outputs.change }} |           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: | on: | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| @ -40,39 +40,39 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     runs-on: ${{ matrix.platform.os }} |     runs-on: ${{ matrix.platform.os }} | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|      |  | ||||||
|     - name: setup node |  | ||||||
|       uses: actions/setup-node@v4 |  | ||||||
|       with: |  | ||||||
|         node-version: 18 |  | ||||||
| 
 | 
 | ||||||
|     - name: 'Setup Rust' |       - name: setup node | ||||||
|       uses: actions-rs/toolchain@v1 |         uses: actions/setup-node@v4 | ||||||
|       with: |         with: | ||||||
|         default: true |           node-version: 20 | ||||||
|         override: true |  | ||||||
|         profile: minimal |  | ||||||
|         toolchain: stable |  | ||||||
|         target: ${{ matrix.platform.rust_target }} |  | ||||||
| 
 | 
 | ||||||
|     - 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) |       - uses: Swatinem/rust-cache@v2 | ||||||
|       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 |       - name: install dependencies (ubuntu only) | ||||||
|       id: tauri_build |         if: matrix.platform.os == 'ubuntu-latest' | ||||||
|       with: |         run: | | ||||||
|         target: ${{ matrix.platform.rust_target }} |           sudo apt-get update | ||||||
|         projectPath: ./test/fixture |           sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||||||
|     - run: | | 
 | ||||||
|         echo "${{ steps.tauri_build.outputs.artifacts }}" |       - uses: JonasKruckenberg/tauri-build@main | ||||||
|     # The artifacts output can now be used to upload the artifacts |         id: tauri_build | ||||||
|     - uses: actions/upload-artifact@v3 |         with: | ||||||
|       with: |           target: ${{ matrix.platform.rust_target }} | ||||||
|         name: artifacts |           projectPath: ./test/fixture | ||||||
|         path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" |       - 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 | ## 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`. | 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 | ### Minimal | ||||||
| 
 | 
 | ||||||
| @ -39,7 +39,7 @@ jobs: | |||||||
|       - name: setup node |       - name: setup node | ||||||
|         uses: actions/setup-node@v1 |         uses: actions/setup-node@v1 | ||||||
|         with: |         with: | ||||||
|           node-version: 16 |           node-version: 20 | ||||||
| 
 | 
 | ||||||
|       - name: install Rust stable |       - name: install Rust stable | ||||||
|         uses: actions-rs/toolchain@v1 |         uses: actions-rs/toolchain@v1 | ||||||
| @ -88,7 +88,7 @@ jobs: | |||||||
|       - name: setup node |       - name: setup node | ||||||
|         uses: actions/setup-node@v1 |         uses: actions/setup-node@v1 | ||||||
|         with: |         with: | ||||||
|           node-version: 16 |           node-version: 20 | ||||||
| 
 | 
 | ||||||
|       - name: install Rust stable |       - name: install Rust stable | ||||||
|         uses: actions-rs/toolchain@v1 |         uses: actions-rs/toolchain@v1 | ||||||
| @ -165,11 +165,11 @@ jobs: | |||||||
|     runs-on: ${{ matrix.platform.os }} |     runs-on: ${{ matrix.platform.os }} | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v3 |     - uses: actions/checkout@v3 | ||||||
|      | 
 | ||||||
|     - name: setup node |     - name: setup node | ||||||
|       uses: actions/setup-node@v3 |       uses: actions/setup-node@v3 | ||||||
|       with: |       with: | ||||||
|         node-version: 18 |         node-version: 20 | ||||||
| 
 | 
 | ||||||
|     - name: 'Setup Rust' |     - name: 'Setup Rust' | ||||||
|       uses: actions-rs/toolchain@v1 |       uses: actions-rs/toolchain@v1 | ||||||
|  | |||||||
| @ -21,5 +21,5 @@ outputs: | |||||||
|   artifacts: |   artifacts: | ||||||
|     description: 'JSON array of artifact paths produced by the build command' |     description: 'JSON array of artifact paths produced by the build command' | ||||||
| runs: | runs: | ||||||
|   using: 'node16' |   using: 'node20' | ||||||
|   main: 'dist/index.js' |   main: 'dist/index.js' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user