-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from kevin-lee/update-gh-actions
Update GitHub Actions: Replace `olafurpg/setup-scala` with `actions/setup-java` and `sbt/setup-sbt`
- Loading branch information
Showing
3 changed files
with
33 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,26 +15,18 @@ jobs: | |
strategy: | ||
matrix: | ||
scala: | ||
- { name: "Scala 2", version: "2.12.18", binary-version: "2.12", java-version: "[email protected]", params: "" } | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "[email protected]", params: "" } | ||
- { name: "Scala 3.1", version: "3.3.1", binary-version: "3", java-version: "[email protected]", params: '' } | ||
- { name: "Scala 2", version: "2.12.18", binary-version: "2.12", java-version: "11", java-distribution: "temurin", params: "" } | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "11", java-distribution: "temurin", params: "" } | ||
- { name: "Scala 3.1", version: "3.3.1", binary-version: "3", java-version: "11", java-distribution: "temurin", params: '' } | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.scala.java-version }} | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.cache/coursier | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }} | ||
distribution: ${{ matrix.scala.java-distribution }} | ||
cache: 'sbt' | ||
- uses: sbt/setup-sbt@v1 | ||
|
||
- name: "[Push] Build All for Scala ${{ matrix.scala.version }}" | ||
if: github.event_name == 'push' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ on: | |
- '*' | ||
|
||
env: | ||
GH_JAVA_VERSION: "[email protected]" | ||
GH_JAVA_VERSION: "11" | ||
GH_JAVA_DISTRIBUTION: "temurin" | ||
GH_JVM_OPTS: "-Xss64m -Xms1024m -XX:MaxMetaspaceSize=1G -Xmx2G -XX:MaxInlineLevel=18 -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler" | ||
|
||
jobs: | ||
|
@@ -19,26 +20,18 @@ jobs: | |
strategy: | ||
matrix: | ||
scala: | ||
- { name: "Scala 2", version: "2.12.18", binary-version: "2.12", java-version: "[email protected]", params: "" } | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "[email protected]", params: "" } | ||
- { name: "Scala 3.1", version: "3.3.1", binary-version: "3", java-version: "[email protected]", params: '' } | ||
- { name: "Scala 2", version: "2.12.18", binary-version: "2.12", java-version: "11", java-distribution: "temurin", params: "" } | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "11", java-distribution: "temurin", params: "" } | ||
- { name: "Scala 3.1", version: "3.3.1", binary-version: "3", java-version: "11", java-distribution: "temurin", params: '' } | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.scala.java-version }} | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.cache/coursier | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }} | ||
distribution: ${{ matrix.scala.java-distribution }} | ||
cache: 'sbt' | ||
- uses: sbt/setup-sbt@v1 | ||
|
||
- name: "Build All for Scala ${{ matrix.scala.version }}" | ||
env: | ||
|
@@ -53,24 +46,16 @@ jobs: | |
strategy: | ||
matrix: | ||
scala: | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "[email protected]" } | ||
- { name: "Scala 2", version: "2.13.12", binary-version: "2.13", java-version: "11", java-distribution: "temurin" } | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.scala.java-version }} | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.cache/coursier | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}- | ||
distribution: ${{ matrix.scala.java-distribution }} | ||
cache: 'sbt' | ||
- uses: sbt/setup-sbt@v1 | ||
|
||
- name: "[Codecov] Report ${{ matrix.scala.name }} ${{ matrix.scala.version }} - ${{ github.run_number }}" | ||
env: | ||
|
@@ -95,20 +80,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: olafurpg/setup-scala@v14 | ||
with: | ||
java-version: ${{ env.GH_JAVA_VERSION }} | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v4 | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.cache/coursier | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt | ||
java-version: ${{ env.GH_JAVA_VERSION }} | ||
distribution: ${{ env.GH_JAVA_DISTRIBUTION }} | ||
cache: 'sbt' | ||
- uses: sbt/setup-sbt@v1 | ||
|
||
- name: sbt GitHub Release | ||
env: | ||
|
@@ -135,22 +114,14 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ env.GH_JAVA_VERSION }} | ||
distribution: ${{ env.GH_JAVA_DISTRIBUTION }} | ||
cache: 'sbt' | ||
- uses: sbt/setup-sbt@v1 | ||
- uses: olafurpg/setup-gpg@v3 | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.cache/coursier | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt | ||
- name: "sbt ci-release - ${{ github.run_number }}" | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
|