Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegorbani committed Dec 4, 2023
1 parent 6acb191 commit f1301eb
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,38 +64,38 @@ jobs:
# ============
# DEPENDENCIES
# ============
- name: Restore cached conda based dependencies
if: ${{ env.action-restore-cache == 'true' }}
uses: actions/cache/restore@v3
with:
path: ${{ env.CONDA }}/envs/test
key: ${{ matrix.os }}-conda-${{ hashFiles('.github/workflows/conda-deps.yml') }}-${{ env.DATE }}
id: cache-restore-conda-deps
# - name: Restore cached conda based dependencies
# if: ${{ env.action-restore-cache == 'true' }} && matrix.os == 'ubuntu-latest'
# uses: actions/cache/restore@v3
# with:
# path: ${{ env.CONDA }}/envs/test
# key: ${{ matrix.os }}-conda-${{ hashFiles('.github/workflows/conda-deps.yml') }}-${{ env.DATE }}
# id: cache-restore-conda-deps

- name: Dependencies (using conda)
- name: Dependencies (using conda) [Ubuntu]
shell: bash -l {0}
if: steps.cache-restore-conda-deps.outputs.cache-hit != 'true'
if: steps.cache-restore-conda-deps.outputs.cache-hit != 'true' && matrix.os == 'ubuntu-latest'
run: |
mamba env update -f .github/workflows/conda-deps.yml
- name: Cache conda based dependencies
if: ${{ steps.cache-restore-conda-deps.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v3
with:
path: ${{ env.CONDA }}/envs/test
key: ${{ matrix.os }}-conda-${{ hashFiles('.github/workflows/conda-deps.yml') }}-${{ env.DATE }}
id: cache-save-conda-deps
# - name: Cache conda based dependencies
# if: ${{ steps.cache-restore-conda-deps.outputs.cache-hit != 'true' }} && matrix.os == 'ubuntu-latest'
# uses: actions/cache/save@v3
# with:
# path: ${{ env.CONDA }}/envs/test
# key: ${{ matrix.os }}-conda-${{ hashFiles('.github/workflows/conda-deps.yml') }}-${{ env.DATE }}
# id: cache-save-conda-deps

- name: Restore cached source-based dependencies
if: ${{ env.action-restore-cache == 'true' && steps.cache-restore-conda-deps.outputs.cache-hit == 'true' }}
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}/install/deps
key: ${{ matrix.os }}-${{ matrix.build_type }}-source-${{env.BipedalLocomotionFramework_TAG}}-${{ env.DATE }}
id: cache-restore-source-deps
# - name: Restore cached source-based dependencies
# if: ${{ env.action-restore-cache == 'true' && steps.cache-restore-conda-deps.outputs.cache-hit == 'true' }} && matrix.os == 'ubuntu-latest'
# uses: actions/cache/restore@v3
# with:
# path: ${{ github.workspace }}/install/deps
# key: ${{ matrix.os }}-${{ matrix.build_type }}-source-${{env.BipedalLocomotionFramework_TAG}}-${{ env.DATE }}
# id: cache-restore-source-deps

- name: Source-based dependencies
if: ${{ steps.cache-restore-conda-deps.outputs.cache-hit != 'true' || steps.cache-restore-source-deps.outputs.cache-hit != 'true' }}
- name: Source-based dependencies [Ubuntu]
if: steps.cache-source-deps.outputs.cache-hit != 'true' && matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: |
Expand Down

0 comments on commit f1301eb

Please sign in to comment.