-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26c6414
commit 74bd1e6
Showing
4 changed files
with
34 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
35 changes: 18 additions & 17 deletions
35
...ub/workflows/restore_workspace_macos.yaml → ...b/workflows/setup_tools_macos/action.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
name: "restore macOS workspace from cache" | ||
name: "setup tools and caching for macOS workspace" | ||
description: "setup tools and caching for macOS workspace" | ||
inputs: | ||
kotlinVersion: | ||
required: true | ||
description: Kotlin version | ||
gradle-cache-read-only: | ||
default: "true" | ||
description: Updates gradle cache after actions if not read-only | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
cache-read-only: ${{ inputs.gradle-cache-read-only }} | ||
gradle-home-cache-includes: | | ||
caches | ||
notifications | ||
- name: Get cache of workspace | ||
uses: actions/cache@v3 | ||
id: restore-build | ||
with: | ||
path: | | ||
./* | ||
!/.gradle | ||
key: build-iOS-${{ github.sha }} | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
|
||
- name: Konan cache | ||
uses: actions/cache@v3 | ||
id: konan-cache | ||
with: | ||
path: | | ||
~/.konan/cache/* | ||
~/.konan/kotlin-native-prebuilt-macos-x86_64-${{ needs.build.outputs.kotlinVersion }}/* | ||
~/.konan/kotlin-native-prebuilt-macos-x86_64-${{ inputs.kotlinVersion }}/* | ||
~/.konan/dependencies/* | ||
key: konan-${{ inputs.kotlinVersion }} | ||
|
||
- name: Make cache of workspace | ||
uses: actions/cache@v3 | ||
id: restore-build | ||
with: | ||
path: | | ||
./* | ||
!/.gradle | ||
key: build-iOS-${{ github.sha }} |