Move RISCV env. var. setting interal to scripts
This commit is contained in:
3
.github/actions/run-tests/action.yml
vendored
3
.github/actions/run-tests/action.yml
vendored
@@ -15,9 +15,6 @@ runs:
|
||||
steps:
|
||||
- name: run rtl build script cache of chipyard root should have been loaded by prepare-rtl
|
||||
run: |
|
||||
export RISCV="$GITHUB_WORKSPACE/riscv-tools-install"
|
||||
export LD_LIBRARY_PATH="$RISCV/lib"
|
||||
export PATH="$RISCV/bin:$PATH"
|
||||
./.github/scripts/${{ inputs.run-script }} ${{ inputs.project-key }}
|
||||
shell: bash
|
||||
|
||||
|
||||
8
.github/scripts/build-extra-tests.sh
vendored
8
.github/scripts/build-extra-tests.sh
vendored
@@ -3,13 +3,13 @@
|
||||
# turn echo on and error on earliest command
|
||||
set -ex
|
||||
|
||||
export RISCV="$GITHUB_WORKSPACE/riscv-tools-install"
|
||||
export LD_LIBRARY_PATH="$RISCV/lib"
|
||||
export PATH="$RISCV/bin:$PATH"
|
||||
|
||||
# get shared variables
|
||||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
source $SCRIPT_DIR/defaults.sh
|
||||
|
||||
export RISCV="$GITHUB_WORKSPACE/riscv-tools-install"
|
||||
export LD_LIBRARY_PATH="$RISCV/lib"
|
||||
export PATH="$RISCV/bin:$PATH"
|
||||
|
||||
make -C $LOCAL_CHIPYARD_DIR/tests clean
|
||||
make -C $LOCAL_CHIPYARD_DIR/tests
|
||||
|
||||
4
.github/scripts/run-firesim-scala-tests.sh
vendored
4
.github/scripts/run-firesim-scala-tests.sh
vendored
@@ -13,6 +13,10 @@ source $SCRIPT_DIR/defaults.sh
|
||||
# call clean on exit
|
||||
trap clean EXIT
|
||||
|
||||
export RISCV="$GITHUB_WORKSPACE/riscv-tools-install"
|
||||
export LD_LIBRARY_PATH="$RISCV/lib"
|
||||
export PATH="$RISCV/bin:$PATH"
|
||||
|
||||
# Directory locations for handling firesim-local installations of libelf/libdwarf
|
||||
# This would generally be handled by build-setup.sh/firesim-setup.sh
|
||||
firesim_sysroot=lib-install
|
||||
|
||||
4
.github/scripts/run-tests.sh
vendored
4
.github/scripts/run-tests.sh
vendored
@@ -9,6 +9,10 @@ set -ex
|
||||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
source $SCRIPT_DIR/defaults.sh
|
||||
|
||||
export RISCV="$GITHUB_WORKSPACE/riscv-tools-install"
|
||||
export LD_LIBRARY_PATH="$RISCV/lib"
|
||||
export PATH="$RISCV/bin:$PATH"
|
||||
|
||||
run_bmark () {
|
||||
make run-bmark-tests-fast -j$CI_MAKE_NPROC -C $LOCAL_SIM_DIR $@
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user