fix/ci-optimizations (#2)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Test code / Test code (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Test code / Test code (push) Has been cancelled
				
			Reviewed-on: remoll/fast-network-navigation#2
This commit is contained in:
		
							
								
								
									
										25
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -1,25 +0,0 @@ | |||||||
| kind: pipeline |  | ||||||
| type: kubernetes |  | ||||||
| name: build-apk |  | ||||||
|  |  | ||||||
| clone: |  | ||||||
|   depth: 1 |  | ||||||
|  |  | ||||||
| steps: |  | ||||||
|   - name: build |  | ||||||
|     image: cirrusci/flutter:stable |  | ||||||
|     pull: true |  | ||||||
|     commands: |  | ||||||
|       - flutter packages get |  | ||||||
|       - flutter build apk --release --split-per-abi |  | ||||||
|       - mkdir apks |  | ||||||
|       - mv build/app/outputs/apk/*/*/*.apk apks |  | ||||||
|  |  | ||||||
|   - name: Publish APK |  | ||||||
|     image: plugins/gitea-release |  | ||||||
|     settings: |  | ||||||
|       api_key: |  | ||||||
|         from_secret: GITEA_TOKEN |  | ||||||
| trigger: |  | ||||||
|   event: |  | ||||||
|     - push |  | ||||||
| @@ -1,5 +1,10 @@ | |||||||
| on: push | on: | ||||||
| name: Test, Build and Release apk |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - main | ||||||
|  |  | ||||||
|  | name: Build and release APK | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     name: Build APK |     name: Build APK | ||||||
| @@ -10,6 +15,7 @@ jobs: | |||||||
|       run: | |       run: | | ||||||
|         sudo apt-get update |         sudo apt-get update | ||||||
|         sudo apt-get install -y xz-utils unzip |         sudo apt-get install -y xz-utils unzip | ||||||
|  |  | ||||||
|     - uses: https://gitea.com/actions/checkout@v4 |     - uses: https://gitea.com/actions/checkout@v4 | ||||||
|  |  | ||||||
|     - uses: https://github.com/actions/setup-java@v4 |     - uses: https://github.com/actions/setup-java@v4 | ||||||
| @@ -22,19 +28,22 @@ jobs: | |||||||
|         channel: stable |         channel: stable | ||||||
|         flutter-version: 3.19.6 |         flutter-version: 3.19.6 | ||||||
|         cache: true |         cache: true | ||||||
|  |  | ||||||
|     - name: Setup Android SDK |     - name: Setup Android SDK | ||||||
|       uses: https://github.com/android-actions/setup-android@v3 |       uses: https://github.com/android-actions/setup-android@v3 | ||||||
|  |  | ||||||
|     - run: flutter pub get |     - run: flutter pub get | ||||||
|     # - run: flutter test |  | ||||||
|     - run: flutter build apk --debug --split-per-abi |     - run: flutter build apk --debug --split-per-abi | ||||||
|  |  | ||||||
|     - name: Release APK |     - name: Release APK | ||||||
|       uses: https://gitea.com/akkuman/gitea-release-action@v1 |       uses: https://gitea.com/akkuman/gitea-release-action@v1 | ||||||
|       with: |       with: | ||||||
|         files: build/app/outputs/flutter-apk/*.apk |         files: build/app/outputs/flutter-apk/*.apk | ||||||
|  |         name: Testing release | ||||||
|  |         release_name: testing | ||||||
|         tag: testing |         tag: testing | ||||||
|         release_name: Testing release |         tag_name: testing | ||||||
|         release_body: "This is a testing release." |         release_body: "This is a testing release." | ||||||
|         prerelease: true |         prerelease: true | ||||||
|         token: ${{ secrets.GITEA_TOKEN }} |         token: ${{ secrets.GITEA_TOKEN }} | ||||||
|   | |||||||
| @@ -1,21 +1,30 @@ | |||||||
| on: push | on: | ||||||
| name: Test, Build and Release web |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - main | ||||||
|  |  | ||||||
|  | name: Build web | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     name: Build Web |     name: Build Web | ||||||
|     runs-on: k8s |     runs-on: k8s | ||||||
|     steps: |     steps: | ||||||
|  |  | ||||||
|     - name: Install prerequisites |     - name: Install prerequisites | ||||||
|       run: | |       run: | | ||||||
|         sudo apt-get update |         sudo apt-get update | ||||||
|         sudo apt-get install -y xz-utils |         sudo apt-get install -y xz-utils | ||||||
|  |  | ||||||
|     - uses: actions/checkout@v4 |     - uses: actions/checkout@v4 | ||||||
|  |  | ||||||
|     - uses: https://github.com/subosito/flutter-action@v2 |     - uses: https://github.com/subosito/flutter-action@v2 | ||||||
|       with: |       with: | ||||||
|         channel: stable |         channel: stable | ||||||
|         flutter-version: 3.19.6 |         flutter-version: 3.19.6 | ||||||
|         cache: true |         cache: true | ||||||
|     - run: flutter pub get |  | ||||||
|     # - run: flutter test |     - run: flutter pub get | ||||||
|  |  | ||||||
|  |     - run: flutter build web | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										31
									
								
								.gitea/workflows/test.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.gitea/workflows/test.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | |||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - main | ||||||
|  |  | ||||||
|  |  | ||||||
|  | name: Test code | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   test: | ||||||
|  |     name: Test code | ||||||
|  |     runs-on: k8s | ||||||
|  |     steps: | ||||||
|  |  | ||||||
|  |     - name: Install prerequisites | ||||||
|  |       run: | | ||||||
|  |         sudo apt-get update | ||||||
|  |         sudo apt-get install -y xz-utils | ||||||
|  |  | ||||||
|  |     - uses: actions/checkout@v4 | ||||||
|  |  | ||||||
|  |     - uses: https://github.com/subosito/flutter-action@v2 | ||||||
|  |       with: | ||||||
|  |         channel: stable | ||||||
|  |         flutter-version: 3.19.6 | ||||||
|  |         cache: true | ||||||
|  |  | ||||||
|  |     - run: flutter pub get | ||||||
|  |  | ||||||
|  |     - run: flutter test | ||||||
		Reference in New Issue
	
	Block a user