Update playground.yml
This commit is contained in:
		
							parent
							
								
									888e993534
								
							
						
					
					
						commit
						b30f84623b
					
				
							
								
								
									
										48
									
								
								.github/workflows/playground.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										48
									
								
								.github/workflows/playground.yml
									
									
									
									
										vendored
									
									
								
							| @ -43,7 +43,45 @@ jobs: | ||||
|               os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel | ||||
|               extra-build-args: "", | ||||
|               arch: x86_64, | ||||
|               flutter: "3.13.9", | ||||
|               flutter: "3.19.6", | ||||
|               ref: "1ffc10e44ffdc9c8a396ec840b856bd27940b171", | ||||
|               date: "20240419" | ||||
|             } | ||||
|           - { | ||||
|               target: x86_64-apple-darwin, | ||||
|               os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel | ||||
|               extra-build-args: "", | ||||
|               arch: x86_64, | ||||
|               flutter: "3.16.9", | ||||
|               ref: "b2290f5b4c3fd9233f6550b01c151401cdb3fed3", | ||||
|               date: "20240319" | ||||
|             } | ||||
|           - { | ||||
|               target: x86_64-apple-darwin, | ||||
|               os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel | ||||
|               extra-build-args: "", | ||||
|               arch: x86_64, | ||||
|               flutter: "3.19.6", | ||||
|               ref: "914da2b86f73a314027833b1940784d657826503", | ||||
|               date: "20240219" | ||||
|             } | ||||
|           - { | ||||
|               target: x86_64-apple-darwin, | ||||
|               os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel | ||||
|               extra-build-args: "", | ||||
|               arch: x86_64, | ||||
|               flutter: "3.19.6", | ||||
|               ref: "06b3894249c14610c71d565cff1634b4ebb75326", | ||||
|               date: "20240119" | ||||
|             } | ||||
|           - { | ||||
|               target: x86_64-apple-darwin, | ||||
|               os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel | ||||
|               extra-build-args: "", | ||||
|               arch: x86_64, | ||||
|               flutter: "3.19.6", | ||||
|               ref: "f6509e3fd6917aa976bad2fc684182601ebf2434", | ||||
|               date: "20231219" | ||||
|             } | ||||
|     steps: | ||||
|       - name: Export GitHub Actions cache environment variables | ||||
| @ -55,6 +93,8 @@ jobs: | ||||
| 
 | ||||
|       - name: Checkout source code | ||||
|         uses: actions/checkout@v3 | ||||
|         with: | ||||
|           ref: ${{ matrix.job.ref }} | ||||
|            | ||||
|       - name: Import the codesign cert | ||||
|         if: env.MACOS_P12_BASE64 != null | ||||
| @ -114,8 +154,8 @@ jobs: | ||||
|         shell: bash | ||||
|         run: | | ||||
|           cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid" | ||||
|           # below works for mac | ||||
|           pushd flutter/lib; find . -name "*.dart" | xargs -I{} sed -i '' 's/textScaler: TextScaler.linear(\(.*\)),/textScaleFactor: \1,/g' {}; popd; | ||||
|           # below works for mac to make buildable on 3.13.9 | ||||
|           # pushd flutter/lib; find . -name "*.dart" | xargs -I{} sed -i '' 's/textScaler: TextScaler.linear(\(.*\)),/textScaleFactor: \1,/g' {}; popd; | ||||
|           pushd flutter && flutter pub get && popd | ||||
|           ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h | ||||
| 
 | ||||
| @ -170,7 +210,7 @@ jobs: | ||||
|       - name: Rename rustdesk | ||||
|         run: | | ||||
|           for name in rustdesk*??.dmg; do | ||||
|               mv "$name" "${name%%.dmg}-${{ matrix.job.arch }}-flutter${{ matrix.job.flutter }}.dmg" | ||||
|               mv "$name" "${name%%.dmg}-${{ matrix.job.arch }}-flutter${{ matrix.job.flutter }}-flutter${{ matrix.job.date }}.dmg" | ||||
|           done | ||||
| 
 | ||||
|       - name: Publish DMG package | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user