From f88841057cd3163562758823dedd2b821b232481 Mon Sep 17 00:00:00 2001 From: Daniel Shuy Date: Thu, 19 Dec 2019 23:14:04 +0800 Subject: [PATCH] Add Scala - SBT example --- examples.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples.md b/examples.md index 948179c..c681b59 100644 --- a/examples.md +++ b/examples.md @@ -11,6 +11,7 @@ - [Python - pip](#python---pip) - [Ruby - Gem](#ruby---gem) - [Rust - Cargo](#rust---cargo) +- [Scala - SBT](#scala---sbt) - [Swift, Objective-C - Carthage](#swift-objective-c---carthage) - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) @@ -263,6 +264,21 @@ When dependencies are installed later in the workflow, we must specify the same key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} ``` +## Scala - SBT + +```yaml +- name: Cache SBT ivy cache + uses: actions/cache@v1 + with: + path: ~/.ivy2/cache + key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }} +- name: Cache SBT + uses: actions/cache@v1 + with: + path: ~/.sbt + key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} +``` + ## Swift, Objective-C - Carthage ```yaml