Skip to content

Commit

Permalink
Fix slow gradle build task
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfast committed Jan 22, 2024
1 parent 993146d commit ddca956
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,38 @@ jobs:

build:
strategy:
fail-fast: true
matrix:
config: [
{ target: jvm, os: ubuntu-latest },
{ target: apple, os: macos-latest },
]
runs-on: ${{ matrix.config.os }}
timeout-minutes: 60
needs:
- check

name: Build ${{ matrix.config.target }}

steps:
- uses: actions/checkout@v3
- name: set up JDK 17

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

Expand Down Expand Up @@ -161,4 +172,4 @@ jobs:

- name: Release to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1

0 comments on commit ddca956

Please sign in to comment.