Skip to content

Commit

Permalink
Merge pull request #1675 from ucb-bar/install-circt-out-of-conda
Browse files Browse the repository at this point in the history
Install CIRCT out of Conda
  • Loading branch information
abejgonzalez authored Dec 7, 2023
2 parents a149085 + 3df5e62 commit 516e624
Show file tree
Hide file tree
Showing 9 changed files with 902 additions and 901 deletions.
15 changes: 14 additions & 1 deletion .github/actions/create-conda-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,25 @@ runs:
conda-lock install --conda $(which conda) -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools ./conda-reqs/conda-lock-reqs/conda-requirements-esp-tools-linux-64.conda-lock.yml
conda deactivate
echo "Add extra toolchain collateral to RISC-V install area"
echo "Add extra toolchain collateral + CIRCT to RISC-V install area"
git submodule update --init ./tools/install-circt
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 -p $CONDA_PREFIX/riscv-tools
./tools/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 ${{ github.token }}
conda deactivate
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
./tools/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 ${{ github.token }}
conda deactivate
fi
shell: bash -leo pipefail {0}
25 changes: 25 additions & 0 deletions .github/workflows/update-circt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: update-circt

# run daily
on:
schedule:
- cron: 0,15,30,45 * * * *
#- cron: 0 8 * * *

defaults:
run:
shell: bash -leo pipefail {0}

jobs:
update-circt:
name: update-circt
runs-on: ubuntu-latest
steps:
- name: Update CIRCT
uses: circt/update-circt@v1.0.0
with:
user: 'bartender'
email: 'firesimchipyard@gmail.com'
pr-reviewers: ''
pr-labels: 'changelog:changed'
circt-config: './conda-reqs/circt.json'
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@
[submodule "generators/rocc-acc-utils"]
path = generators/rocc-acc-utils
url = https://github.com/ucb-bar/rocc-acc-utils
[submodule "tools/install-circt"]
path = tools/install-circt
url = https://github.com/circt/install-circt/
2 changes: 1 addition & 1 deletion conda-reqs/chipyard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies:
- conda-gcc-specs
- binutils

- firtool==1.58.0 # from ucb-bar channel - https://github.com/ucb-bar/firtool-feedstock
# firtool handled outside of conda

# misc
- autoconf
Expand Down
3 changes: 3 additions & 0 deletions conda-reqs/circt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "firtool-1.58.0"
}
Loading

0 comments on commit 516e624

Please sign in to comment.