Skip to content

Commit

Permalink
chore(build): Add GitHub Action cache step (spinnaker#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsie committed Mar 25, 2020
1 parent 99741e9 commit fa8a3f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -14,6 +14,12 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v1.1.2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Expand Up @@ -10,6 +10,12 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v1.1.2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
env:
GRADLE_OPTS: -Xmx6g -Xms6g -Dorg.gradle.daemon=false
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -15,6 +15,12 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v1.1.2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Assemble release info
id: release_info
env:
Expand Down

0 comments on commit fa8a3f2

Please sign in to comment.