Skip to content

Commit

Permalink
Update Java and Python Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun-Dutta authored Jul 25, 2024
1 parent 6670c0f commit 1d75e8a
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,15 @@ jobs:
# Change line below
if: github.repository == 'Varun-Dutta/djl'
runs-on: ubuntu-latest
steps:
- name: Cache Java
id: java-cache
uses: actions/cache@v4
with:
path: ~/.cache/Java
key: ${{ runner.os }}-java

steps:
- name: Set up JDK 17
if: steps.java-cache.outputs.cache-hit != 'true'
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17

- name: Cache Python
id: python-cache
uses: actions/cache@v4
with:
path: ~/.cache/Python
key: ${{ runner.os }}-python
cache: 'maven'

- name: Set up Python
if: steps.python-cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v5
with:
python-version: '3.x'
Expand All @@ -81,8 +66,8 @@ jobs:
id: python-packages-cache
uses: actions/cache@v4
with:
path: ~/.cache/Python-Packages
key: ${{ runner.os }}-python-packages
path: ~/.cache/pip
key: ${{ runner.os }}-pip--${{ hashFiles('**/requirements.txt') }}

- name: Install Python Dependencies
if: steps.python-packages-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 1d75e8a

Please sign in to comment.