Skip to content

Commit

Permalink
Reset setup_env
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Nov 25, 2024
1 parent 382a0c1 commit 75f09b9
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/actions/setup_env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ inputs:
runs:
using: "composite"
steps:
# - name: Download Lock File
# run: wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-${{ inputs.os-label }}.lock
# if: matrix.pip == true
# shell: bash
- name: Download Lock File
run: wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-${{ inputs.os-label }}.lock
if: matrix.pip == true
shell: bash

# - name: Generate Cache Key
# run: |
# file_hash=$(cat conda-${{ inputs.os-label }}.lock | shasum -a 256 | cut -d' ' -f1)
# echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}"
# id: cache-environment-key
# shell: bash
- name: Generate Cache Key
run: |
file_hash=$(cat conda-${{ inputs.os-label }}.lock | shasum -a 256 | cut -d' ' -f1)
echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}"
id: cache-environment-key
shell: bash

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: conda-${{ inputs.os-label }}.lock
# cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }}
# cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }}
cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }}
cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }}
environment-name: tardis
# cache-environment: true
# cache-downloads: true

cache-environment: true
cache-downloads: true

0 comments on commit 75f09b9

Please sign in to comment.