only remove android sdk to speed up free space job (#260) #1043
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
gradle-properties-version: [ 242, 243 ] | |
platform-type: [ RR, PC ] | |
runs-on: ubuntu-latest | |
env: | |
ORG_GRADLE_PROJECT_shortPlatformVersion: ${{ matrix.gradle-properties-version }} | |
ORG_GRADLE_PROJECT_platformType: ${{ matrix.platform-type }} | |
steps: | |
- name: Free disk space in the runner before build | |
uses: jlumbroso/free-disk-space@main | |
with: | |
# removes 5.7GB of android SDK only | |
tool-cache: false | |
android: true | |
dotnet: false | |
haskell: false | |
large-packages: false | |
docker-images: false | |
swap-storage: false | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build | |
run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false | |
- name: Tests | |
run: ./gradlew test --stacktrace -Pkotlin.incremental=false | |
- name: Verify plugin.xml | |
run: ./gradlew verifyPluginConfiguration | |
- name: Verify plugin | |
run: ./gradlew verifyPlugin | |