Update CI to install circt | Update every day
This commit is contained in:
8
.github/actions/create-conda-env/action.yml
vendored
8
.github/actions/create-conda-env/action.yml
vendored
@@ -21,5 +21,13 @@ runs:
|
||||
conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools
|
||||
./scripts/build-toolchain-extra.sh esp-tools -p $CONDA_PREFIX/esp-tools
|
||||
conda deactivate
|
||||
|
||||
echo "Installing CIRCT to conda area"
|
||||
$REMOTE_CHIPYARD_DIR/conda-reqs/install-circt/bin/download-release-or-nightly-circt.sh \
|
||||
-f circt-full-shared-linux-x64.tar.gz \
|
||||
-i $CONDA_PREFIX \
|
||||
-v version-file \
|
||||
-x ./conda-reqs/circt.json \
|
||||
-g null
|
||||
fi
|
||||
shell: bash -leo pipefail {0}
|
||||
|
||||
8
.github/workflows/update-circt.yml
vendored
8
.github/workflows/update-circt.yml
vendored
@@ -1,9 +1,9 @@
|
||||
name: update-circt
|
||||
|
||||
# run weekly
|
||||
on: push
|
||||
# schedule:
|
||||
# - cron: 0 0 * * 1
|
||||
# run daily
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 8 * * *
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
@@ -153,6 +153,15 @@ if run_step "1"; then
|
||||
conda activate $CYDIR/.conda-env
|
||||
exit_if_last_command_failed
|
||||
|
||||
# install circt into conda
|
||||
$CYDIR/conda-reqs/install-circt/bin/download-release-or-nightly-circt.sh \
|
||||
-f circt-full-shared-linux-x64.tar.gz \
|
||||
-i $CONDA_PREFIX \
|
||||
-v version-file \
|
||||
-x $CYDIR/conda-reqs/circt.json \
|
||||
-g null
|
||||
exit_if_last_command_failed
|
||||
|
||||
# Conda Setup
|
||||
# Provide a sourceable snippet that can be used in subshells that may not have
|
||||
# inhereted conda functions that would be brought in under a login shell that
|
||||
@@ -172,24 +181,6 @@ END_CONDA_ACTIVATE
|
||||
$CONDA_ACTIVATE_PREAMBLE
|
||||
conda activate $CYDIR/.conda-env
|
||||
source $CYDIR/scripts/fix-open-files.sh"
|
||||
|
||||
# install circt
|
||||
CIRCT_INSTALL_DIR=$CYDIR/.circt
|
||||
rm -rf $CIRCT_INSTALL_DIR
|
||||
$CYDIR/conda-reqs/install-circt/bin/download-release-or-nightly-circt.sh \
|
||||
-f circt-full-shared-linux-x64.tar.gz \
|
||||
-i $CIRCT_INSTALL_DIR \
|
||||
-x $CYDIR/conda-reqs/circt.json \
|
||||
-g null
|
||||
|
||||
replace_content env.sh build-setup-circt "# line auto-generated by $0
|
||||
if [ -d "${CIRCT_INSTALL_DIR}/bin" ] && [[ ":$PATH:" != *":${CIRCT_INSTALL_DIR}/bin:"* ]]; then
|
||||
PATH="${PATH:+"$PATH:"}${CIRCT_INSTALL_DIR}/bin"
|
||||
fi
|
||||
if [ -d "${CIRCT_INSTALL_DIR}/lib" ] && [[ ":$LD_LIBRARY_PATH:" != *":${CIRCT_INSTALL_DIR}/lib:"* ]]; then
|
||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+"$LD_LIBRARY_PATH:"}${CIRCT_INSTALL_DIR}/lib"
|
||||
fi
|
||||
"
|
||||
fi
|
||||
|
||||
if [ -z "$FORCE_FLAG" ]; then
|
||||
|
||||
Reference in New Issue
Block a user