Skip to content

Commit

Permalink
Add build caches (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd authored Apr 10, 2023
1 parent 3d175d1 commit 8e4b4fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
concurrency:
group: "mavenCentral"
cancel-in-progress: false

env:
GRADLE_OPTS: -Dorg.gradle.caching=true

jobs:
build:
Expand All @@ -17,6 +20,7 @@ jobs:
run: long="${{ github.ref }}"; version=${long#"refs/tags/v"}; echo "version=${version}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew build
- name: Publish
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]

env:
GRADLE_OPTS: -Dorg.gradle.caching=true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,6 +21,7 @@ jobs:
- name: Dependency Review
uses: actions/dependency-review-action@v3
if: github.event_name == 'pull_request'
- uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew build
- name: Detekt
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: "docs"
cancel-in-progress: false

env:
GRADLE_OPTS: -Dorg.gradle.caching=true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,6 +28,7 @@ jobs:
- uses: actions/configure-pages@v3
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- name: Generate Docs
run: ./gradlew :integrationTest:hashRouterTest:browserDistribution
- uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit 8e4b4fc

Please sign in to comment.