Activate base env for conda-lock

This commit is contained in:
Abraham Gonzalez
2022-09-01 01:06:43 +00:00
parent 329cb9b289
commit 3efe0bbbae
3 changed files with 4 additions and 0 deletions

View File

@@ -10,8 +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 activate base
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
conda deactivate
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

View File

@@ -41,6 +41,7 @@ SHELL ["/bin/bash", "-cl"]
# Initialize repo
RUN cd chipyard && \
export MAKEFLAGS=-"j $(nproc)" && \
conda activate base && \
./setup.sh --env-name chipyard --skip-validate
SHELL ["/opt/conda/bin/conda", "run", "-n", "chipyard", "/bin/bash", "-cl"]

View File

@@ -47,6 +47,7 @@ This is done by the following:
.. code-block:: shell
conda install -n base conda-lock
conda activate base
Setting up the Chipyard Repo
-------------------------------------------