Skip to content

Commit

Permalink
Let conda-lock produce both unified and platform-specific lockfiles (#…
Browse files Browse the repository at this point in the history
…123)

Running `conda-lock lock --kind=lock` to produce a unified
'conda-lock.yml' file, and then `conda-lock render` to get a
platform-specific 'conda-linux-64.lock' file as before.

Fixes #122.
  • Loading branch information
scottyhq authored Aug 7, 2024
2 parents 9d2485c + 0018bf6 commit 1ef4863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/conda-lock-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ jobs:
conda-lock
mamba
# Run "conda-lock" for linux-64 only
# Generate unified 'conda-lock.yml' and platform-specific lockfiles
- name: Run conda-lock
run: |
conda-lock lock --mamba --kind explicit --file environment.yml --platform linux-64
conda-lock lock --mamba --file environment.yml --platform linux-64
conda-lock render --kind explicit --platform linux-64
# Commit the change to the PR branch if any changes
- name: Commit condalock files to PR
Expand Down

0 comments on commit 1ef4863

Please sign in to comment.