Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: optimise build cache #2373

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
submodules: recursive # Needed in order to fetch Kalium sources for building
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: buildjet/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
submodules: recursive # Needed in order to fetch Kalium sources for building
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: buildjet/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/gradle-run-ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,18 @@ jobs:
fetch-depth: 0

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

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4

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


- name: AVD cache
uses: actions/cache@v3
id: avd-cache
uses: buildjet/cache@v3
id: avd-cache-${{ runner.os }}
with:
path: |
~/.android/avd/*
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/gradle-run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: buildjet/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -34,9 +34,6 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4

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

- name: Test Build Logic
run: |
./gradlew -p buildSrc test
Expand Down