Use lockfiles for conda
This commit is contained in:
2
.github/CI_README.md
vendored
2
.github/CI_README.md
vendored
@@ -22,7 +22,7 @@ For example:
|
||||
This specifies that the `prepare-chipyard-cores` job needs the both the `make-keys` and the `setup-complete` steps to
|
||||
be completed before it can run.
|
||||
|
||||
Chipyard runs its CI using a docker image created from `dockerfiles/Dockerfile` and on Berkeley's millennium machines.
|
||||
Chipyard runs its CI using a docker image created from `dockerfiles/Dockerfile` and on Berkeley's compute infrastructure.
|
||||
See its [README](../dockerfiles/README.md) for more details.
|
||||
|
||||
Finally, within each job's `steps:` section, the steps are run sequentially and state persists throughout a job.
|
||||
|
||||
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -37,6 +37,7 @@ Provide a brief description of the PR immediately below this comment, if the tit
|
||||
- [ ] Did you state the type-of-change/impact?
|
||||
- [ ] Did you delete any extraneous prints/debugging code?
|
||||
- [ ] Did you mark the PR with a `changelog:` label?
|
||||
- [ ] (If applicable) Did you update the conda `.conda-lock.yml` file if you updated the conda requirements file?
|
||||
- [ ] (If applicable) Did you add documentation for the feature?
|
||||
- [ ] (If applicable) Did you add a test demonstrating the PR?
|
||||
<!-- Do this if this PR is a bugfix that should be applied to the latest release -->
|
||||
|
||||
8
.github/actions/create-conda-env/action.yml
vendored
8
.github/actions/create-conda-env/action.yml
vendored
@@ -10,12 +10,10 @@ runs:
|
||||
echo "Using pre-existing conda environments with prefix ${{ env.conda-env-name-no-time }}"
|
||||
else
|
||||
echo "Creating a conda environment for each toolchain with the toolchain installed"
|
||||
conda env create -f ./scripts/conda-requirements.yaml -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools
|
||||
conda install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools -c ucb-bar -y riscv-tools
|
||||
conda env create -f ./scripts/conda-requirements.yaml -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools
|
||||
conda install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools -c ucb-bar -y esp-tools
|
||||
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools ./conda-requirements-riscv-tools-linux-64.conda-lock.yml
|
||||
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools ./conda-requirements-esp-tools-linux-64.conda-lock.yml
|
||||
|
||||
echo "Add source collateral to RISC-V area"
|
||||
echo "Add extra toolchain collateral to RISC-V install area"
|
||||
conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools
|
||||
./scripts/build-toolchain-extra.sh riscv-tools
|
||||
conda deactivate
|
||||
|
||||
4
.github/scripts/install-conda.sh
vendored
4
.github/scripts/install-conda.sh
vendored
@@ -159,6 +159,10 @@ else
|
||||
# conda-libmamba-solver is a special case and must always be installed into the base environment
|
||||
# see https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community
|
||||
$SUDO "$CONDA_EXE" install $DRY_RUN_OPTION -y -n base conda-libmamba-solver
|
||||
|
||||
# conda-lock is a special case and must always be installed into the base environment
|
||||
$SUDO "$CONDA_EXE" install $DRY_RUN_OPTION -y -n base conda-lock
|
||||
|
||||
# Use the fast solver by default
|
||||
"${DRY_RUN_ECHO[@]}" $SUDO "$CONDA_EXE" config --system --set experimental_solver libmamba
|
||||
|
||||
|
||||
Reference in New Issue
Block a user