-
Notifications
You must be signed in to change notification settings - Fork 7
Workflows. Add a cached build checks #143
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bd5a339
Workflows. Add a cached build step
porotkin 918ed20
Workflows. Separate steps for `clean` and `build`
porotkin 0a3368d
Workflows. Enable gradle cache with `setup-java` step
porotkin a5d3f8f
Workflows. Try to dry-run build first
porotkin 3c1ed74
Workflows. Check caching hit
porotkin 7d7f173
Workflows. Remove redundant steps
porotkin 145f432
CI Cache. Temporarily continue on error on the last step
porotkin b4c1390
CI Cache. One step
porotkin 5f6a0d6
CI Cache. Manual job
porotkin 95c2074
Revert "CI Cache. Manual job"
porotkin 1048211
CI Cache. Add dry-run flag
porotkin c87bb82
CI Cache. Add `build-build` job
porotkin 093c537
CI Cache. Exclude `lib-multiplatform` example build
porotkin 2c72c2e
Revert "CI Cache. Exclude `lib-multiplatform` example build"
porotkin 4c2abd9
CI Cache. 3 builds because of `lib-multiplatform` build
porotkin f640828
Revert "Revert "CI Cache. Manual job""
porotkin dd9ea08
Revert "CI Cache. Add dry-run flag"
porotkin a298257
CI Cache. Positioning
porotkin d4ecd6b
CI Cache. Naming
porotkin d8a772d
CI Cache. Job naming
porotkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: CI Cache | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '21' | ||
| cache: gradle | ||
| - name: Execute | ||
| run: | | ||
| ./gradlew build | ||
| ./gradlew build | ||
| ./gradlew build | ||
|
|
||
| build-clean-build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '21' | ||
| cache: gradle | ||
| - name: Execute | ||
| run: | | ||
| ./gradlew build | ||
| ./gradlew clean # preserves configuration caches | ||
| ./gradlew build | ||
| ./gradlew build | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sync names logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done