From 9661167a51a122f464831d1b57c8ec7728593100 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Thu, 21 Mar 2024 21:56:28 +0100 Subject: [PATCH] ci: Move `before_script` steps to `iis-setup.sh` --- .gitlab-ci.yml | 25 +------------------------ iis-setup.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 iis-setup.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e677636f..79ce49248 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,32 +5,9 @@ variables: GIT_STRATEGY: clone GIT_SUBMODULE_STRATEGY: recursive - PYTHON: /usr/local/anaconda3-2022.05/bin/python3 - BENDER: bender-0.27.1 - CLANG_FORMAT: clang-format-10.0.1 - CC: gcc-9.2.0 - CXX: g++-9.2.0 - QUESTA_SEPP: questa-2022.3 - LLVM_BINROOT: /usr/pack/riscv-1.0-kgf/pulp-llvm-0.12.0/bin - CLANG: /usr/pack/riscv-1.0-kgf/pulp-llvm-0.12.0/bin/clang - RISCV_GCC_VERSION: 8.3.0-2020.04.0 before_script: - # yamllint disable rule:line-length - - $PYTHON -m venv .venv - - source .venv/bin/activate - - $BENDER update - - pip install -r python-requirements.txt - # Install CVA6 compiler toolchain - - curl -Ls -o riscv-gcc.tar.gz https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-$RISCV_GCC_VERSION-x86_64-linux-ubuntu14.tar.gz - - mkdir -p .tools/riscv && chmod 777 .tools/riscv - - tar -C .tools/riscv -xf riscv-gcc.tar.gz --strip-components=1 - - export PATH="$(pwd)/.tools/riscv/bin:$PATH" - # Install verible - - mkdir -p .tools/verible && chmod 777 .tools/verible - - curl -L https://github.com/chipsalliance/verible/releases/download/v0.0-3222-gb19cdf44/verible-v0.0-3222-gb19cdf44-CentOS-7.9.2009-Core-x86_64.tar.gz | tar xz -C .tools/verible --strip-components=1 - - export PATH="$(pwd)/.tools/verible/bin:$PATH" - # yamllint enable rule:line-length + source iis-setup.sh ############## # Build docs # diff --git a/iis-setup.sh b/iis-setup.sh new file mode 100644 index 000000000..9a9b019f9 --- /dev/null +++ b/iis-setup.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +source deps/snitch_cluster/iis-setup.sh + +# TODO: uncomment if needed else remove +# export CLANG=/usr/pack/riscv-1.0-kgf/pulp-llvm-0.12.0/bin/clang +export CLANG_FORMAT=clang-format-10.0.1 + +# Install CVA6 compiler toolchain +RISCV_GCC_VERSION=8.3.0-2020.04.0 +mkdir -p tools/riscv +chmod 777 tools/riscv +cd tools/riscv +curl -Ls -o riscv-gcc.tar.gz https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-$RISCV_GCC_VERSION-x86_64-linux-ubuntu14.tar.gz +tar -xf riscv-gcc.tar.gz --strip-components=1 +export PATH=$(pwd)/bin:$PATH +cd - + +# Install verible +mkdir -p tools/verible +chmod 777 tools/verible +cd tools/verible +curl -Ls -o verible.tar.gz https://github.com/chipsalliance/verible/releases/download/v0.0-3222-gb19cdf44/verible-v0.0-3222-gb19cdf44-CentOS-7.9.2009-Core-x86_64.tar.gz +tar -xzf verible.tar.gz --strip-components=1 +export PATH=$(pwd)/bin:$PATH +cd - \ No newline at end of file