Skip to content

Commit

Permalink
CI : Use github action cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rcywongaa committed Oct 6, 2024
1 parent a8b5034 commit 6a3f858
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ runs:
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: humble
if: ${{ steps.cache-setup.outputs.cache-hit != 'true' }}

- name: Setup Drake
run: |
Expand All @@ -21,9 +22,17 @@ runs:
echo "/opt/drake/bin" >> $GITHUB_PATH
echo "PYTHONPATH=/opt/drake/lib/python$(python3 -c 'import sys; print("{0}.{1}".format(*sys.version_info))')/site-packages" >> $GITHUB_ENV
shell: bash
if: ${{ steps.cache-setup.outputs.cache-hit != 'true' }}

- name: Install dependencies (python)
run: |
sudo apt install -y python3-numpy
pip install pybullet==3.0.8
shell: bash
if: ${{ steps.cache-setup.outputs.cache-hit != 'true' }}

- name: Cache setup
uses: actions/cache@v3
with:
path: /
key: cache-setup

0 comments on commit 6a3f858

Please sign in to comment.