mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Update CI Java version
This commit is contained in:
		
							
								
								
									
										25
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -44,10 +44,10 @@ jobs: | |||||||
|         if: github.event_name == 'pull_request' |         if: github.event_name == 'pull_request' | ||||||
|         run: git checkout -B ${{ github.head_ref }} |         run: git checkout -B ${{ github.head_ref }} | ||||||
|  |  | ||||||
|       - name: set up JDK 11 |       - name: set up JDK 17 | ||||||
|         uses: actions/setup-java@v3 |         uses: actions/setup-java@v3 | ||||||
|         with: |         with: | ||||||
|           java-version: 11 |           java-version: 17 | ||||||
|           distribution: "temurin" |           distribution: "temurin" | ||||||
|           cache: 'gradle' |           cache: 'gradle' | ||||||
|  |  | ||||||
| @@ -66,8 +66,13 @@ jobs: | |||||||
|     timeout-minutes: 20 |     timeout-minutes: 20 | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         # api-level 19 is min sdk, but throws errors related to desugaring |         include: | ||||||
|         api-level: [ 21, 29 ] |           - api-level: 21 | ||||||
|  |             target: default | ||||||
|  |             arch: x86 | ||||||
|  |           - api-level: 33 | ||||||
|  |             target: google_apis # emulator API 33 only exists with Google APIs | ||||||
|  |             arch: x86_64 | ||||||
|  |  | ||||||
|     permissions: |     permissions: | ||||||
|       contents: read |       contents: read | ||||||
| @@ -75,10 +80,10 @@ jobs: | |||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v3 |       - uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|       - name: set up JDK 11 |       - name: set up JDK 17 | ||||||
|         uses: actions/setup-java@v3 |         uses: actions/setup-java@v3 | ||||||
|         with: |         with: | ||||||
|           java-version: 11 |           java-version: 17 | ||||||
|           distribution: "temurin" |           distribution: "temurin" | ||||||
|           cache: 'gradle' |           cache: 'gradle' | ||||||
|  |  | ||||||
| @@ -86,8 +91,8 @@ jobs: | |||||||
|         uses: reactivecircus/android-emulator-runner@v2 |         uses: reactivecircus/android-emulator-runner@v2 | ||||||
|         with: |         with: | ||||||
|           api-level: ${{ matrix.api-level }} |           api-level: ${{ matrix.api-level }} | ||||||
|           # workaround to emulator bug: https://github.com/ReactiveCircus/android-emulator-runner/issues/160 |           target: ${{ matrix.target }} | ||||||
|           emulator-build: 7425822 |           arch: ${{ matrix.arch }} | ||||||
|           script: ./gradlew connectedCheck --stacktrace |           script: ./gradlew connectedCheck --stacktrace | ||||||
|  |  | ||||||
|       - name: Upload test report when tests fail # because the printed out stacktrace (console) is too short, see also #7553 |       - name: Upload test report when tests fail # because the printed out stacktrace (console) is too short, see also #7553 | ||||||
| @@ -108,10 +113,10 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis |           fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis | ||||||
|  |  | ||||||
|       - name: Set up JDK 11 |       - name: Set up JDK 17 | ||||||
|         uses: actions/setup-java@v3 |         uses: actions/setup-java@v3 | ||||||
|         with: |         with: | ||||||
|           java-version: 11 # Sonar requires JDK 11 |           java-version: 17 | ||||||
|           distribution: "temurin" |           distribution: "temurin" | ||||||
|           cache: 'gradle' |           cache: 'gradle' | ||||||
|  |  | ||||||
|   | |||||||
| @@ -80,13 +80,13 @@ android { | |||||||
|         // Flag to enable support for the new language APIs |         // Flag to enable support for the new language APIs | ||||||
|         coreLibraryDesugaringEnabled true |         coreLibraryDesugaringEnabled true | ||||||
|  |  | ||||||
|         sourceCompatibility JavaVersion.VERSION_11 |         sourceCompatibility JavaVersion.VERSION_17 | ||||||
|         targetCompatibility JavaVersion.VERSION_11 |         targetCompatibility JavaVersion.VERSION_17 | ||||||
|         encoding 'utf-8' |         encoding 'utf-8' | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     kotlinOptions { |     kotlinOptions { | ||||||
|         jvmTarget = JavaVersion.VERSION_11 |         jvmTarget = JavaVersion.VERSION_17 | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     sourceSets { |     sourceSets { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox