Skip to content

Commit c030e28

Browse files
[#98] Add cache (#99)
* [#98] Add sbt cache to GitHub actions workflows
1 parent 943c9c9 commit c030e28

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
- uses: actions/checkout@v2.3.4
1111
with:
1212
fetch-depth: 0
13+
- name: Cache SBT
14+
uses: actions/cache@v2
15+
with:
16+
path: |
17+
~/.ivy2/cache
18+
~/.sbt
19+
key: ${{ runner.os }}-sbt
1320
- uses: olafurpg/setup-scala@v10
1421
- uses: olafurpg/setup-gpg@v3
1522
- run: ./publish.sh

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ jobs:
99
- uses: actions/checkout@v2.3.4
1010
with:
1111
fetch-depth: 0
12+
- name: Cache SBT
13+
uses: actions/cache@v2
14+
with:
15+
path: |
16+
~/.ivy2/cache
17+
~/.sbt
18+
key: ${{ runner.os }}-sbt
1219
- uses: olafurpg/setup-scala@v10
13-
- run: ./make.sh
20+
- run: ./make.sh

.jvmopts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-Dfile.encoding=UTF-8
2+
-Xms1024m
3+
-Xmx1024m
4+
-Xss4M
5+
-XX:ReservedCodeCacheSize=128m

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
sbt clean scalastyle +test +doc darwin-hbase2-connector/clean darwin-hbase2-connector/scalastyle +darwin-hbase2-connector/test +darwin-hbase2-connector/doc
2+
sbt -v clean scalastyle +test +doc darwin-hbase2-connector/clean darwin-hbase2-connector/scalastyle +darwin-hbase2-connector/test +darwin-hbase2-connector/doc

publish.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/bash
22
export CI_RELEASE='clean;scalastyle;+test;+publishSigned;darwin-hbase2-connector/clean;darwin-hbase2-connector/scalastyle;+darwin-hbase2-connector/test;+darwin-hbase2-connector/publishSigned'
33
export CI_SNAPSHOT_RELEASE='clean;scalastyle;+test;+publish;darwin-hbase2-connector/clean;darwin-hbase2-connector/scalastyle;+darwin-hbase2-connector/test;+darwin-hbase2-connector/publish'
4-
ls -ail /home/runner/work/darwin/darwin/gnupg-1.4.23/
5-
ls -ail /home/runner/work/darwin/darwin/gnupg-1.4.23/g10/
6-
sbt ci-release
4+
sbt -v ci-release

0 commit comments

Comments
 (0)