mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # Build iOS version of the app
 | |
| 
 | |
| name: iOS
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|       - master
 | |
|   
 | |
| jobs:
 | |
| 
 | |
|   build:
 | |
|     runs-on: macos-latest
 | |
|   
 | |
|     steps:
 | |
|     - name: Checkout code
 | |
|       uses: actions/checkout@v3
 | |
|       with:
 | |
|         submodules: recursive
 | |
| 
 | |
|     - name: Setup Java
 | |
|       uses: actions/setup-java@v3
 | |
|       with:
 | |
|         distribution: 'temurin'
 | |
|         java-version: '11'
 | |
| 
 | |
|     - name: Setup FVM
 | |
|       id: fvm-config-action
 | |
|       uses: kuhnroyal/flutter-fvm-config-action@v2
 | |
| 
 | |
|     - name: Setup Flutter
 | |
|       uses: subosito/flutter-action@v2
 | |
|       with:
 | |
|         flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
 | |
|         channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
 | |
|         cache: true
 | |
|         cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
 | |
|         cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
 | |
|         pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:"
 | |
|         pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
 | |
| 
 | |
|     - name: Collect Translation Files
 | |
|       run: |
 | |
|         cd lib/l10n
 | |
|         python3 collect_translations.py
 | |
| 
 | |
|     - name: Build for iOS
 | |
|       run: |
 | |
|         dart pub global activate fvm
 | |
|         fvm install
 | |
|         fvm flutter pub get
 | |
|         cd ios
 | |
|         pod repo update
 | |
|         pod install
 | |
|         cd ..
 | |
|         fvm flutter build ios --release --no-codesign --no-tree-shake-icons
 |