Skip to content

Commit

Permalink
specify shell explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Oct 10, 2024
1 parent 59ff377 commit fcc789a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-openocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand All @@ -52,6 +53,7 @@ jobs:
python3 -m pip install tools/SiteSpawner
- name: Build verilated simulation
shell: bash
run: |
export PATH=/opt/verilator/bin:/opt/openocd/bin:$PATH
export RV_ROOT=$(pwd)
Expand All @@ -64,6 +66,7 @@ jobs:
-f ${RV_ROOT}/testbench/openocd_scripts/jtag_cg.tcl
- name: Prepare coverage data
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
export RV_ROOT=$(pwd)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand All @@ -68,6 +69,7 @@ jobs:
python3 -m pip install tools/SiteSpawner
- name: Setup environment
shell: bash
run: |
echo "/opt/verilator/bin" >> $GITHUB_PATH
RV_ROOT=`pwd`
Expand All @@ -78,12 +80,14 @@ jobs:
echo "TEST_PATH=$TEST_PATH" >> $GITHUB_ENV
- name: Run tests
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
export RV_ROOT=`pwd`
.github/scripts/run_regression_test.sh $TEST_PATH ${{ matrix.bus }} ${{ matrix.test}} ${{ matrix.coverage }} ${{ matrix.priv }}
- name: Prepare coverage data
shell: bash
run: |
sis -d convert --dat-dir ${TEST_PATH}/
mkdir -p results
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-riscof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand All @@ -80,6 +81,7 @@ jobs:
pip3 install git+https://github.com/riscv/riscof@a25e315
- name: Clone tests
shell: bash
run: |
mkdir -p riscof
pushd riscof
Expand All @@ -90,6 +92,7 @@ jobs:
popd
- name: Configure RISCOF
shell: bash
run: |
pushd riscof
# Copy RISCOF configuration
Expand All @@ -101,6 +104,7 @@ jobs:
popd
- name: Build VeeR model
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
export RV_ROOT=`pwd`
Expand All @@ -114,6 +118,7 @@ jobs:
popd
- name: Run tests, collect coverage
shell: bash
run: |
export PATH=/opt/verilator/bin:/opt/spike/bin:$PATH
pushd riscof
Expand All @@ -123,13 +128,15 @@ jobs:
popd
- name: Prepare coverage data
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
sis -d convert --dat-dir riscof/coverage/
mv riscof/coverage/coverage.info \
riscof/coverage/coverage_riscof_${{matrix.priv}}_${{ matrix.coverage }}.info
- name: Prepare report
shell: bash
run: |
PYTEST_STYLE_SRC_DIR=${{ github.workspace }}/.github/scripts/pytest/
PYTEST_CSS=${PYTEST_STYLE_SRC_DIR}/css/styles.css
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-riscv-dv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:

- name: Generate code (pyflow)
if: steps.cache-code.outputs.cache-hit != 'true' && matrix.version == 'pyflow'
shell: bash
run: |
export RV_ROOT=`realpath .`
pushd tools/riscv-dv
Expand Down Expand Up @@ -141,6 +142,7 @@ jobs:
# As of July 9th, 2024 `ubuntu:latest` comes with riscv64-unknown-elf-gcc
# 10.0.2. We need a newer version for bitmanip extension support.
- name: Install cross-compiler
shell: bash
run: |
echo "deb http://archive.ubuntu.com/ubuntu/ noble main universe" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \
Expand Down Expand Up @@ -168,6 +170,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand Down Expand Up @@ -204,6 +207,7 @@ jobs:
fail-on-cache-miss: true

- name: Run test
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
export RV_ROOT=`realpath .`
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-uarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
submodules: recursive

- name: Setup environment
shell: bash
run: |
RV_ROOT=`pwd`
echo "RV_ROOT=$RV_ROOT" >> $GITHUB_ENV
Expand All @@ -26,6 +27,7 @@ jobs:
pip3 install nox
- name: Lint
shell: bash
run: |
pushd ${TEST_PATH}
nox -s test_lint
Expand Down Expand Up @@ -63,6 +65,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand All @@ -72,6 +75,7 @@ jobs:
- name: Setup Cache Metadata
id: cache_metadata
shell: bash
run: |
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
Expand Down Expand Up @@ -110,6 +114,7 @@ jobs:
sudo cpanm Bit::Vector
- name: Setup environment
shell: bash
run: |
echo "/opt/verilator/bin" >> $GITHUB_PATH
RV_ROOT=`pwd`
Expand All @@ -131,12 +136,14 @@ jobs:
pip3 install meson nox
- name: Run ${{ matrix.test }}
shell: bash
run: |
pushd ${TEST_PATH}
nox -s ${TEST_NAME}_verify
popd
- name: Prepare coverage data
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
sis -d convert --dat-dir ${TEST_PATH}/${TEST_NAME}/
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
submodules: recursive

- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
Expand All @@ -31,6 +32,7 @@ jobs:
- name: Setup Cache Metadata
id: cache_metadata
shell: bash
run: |
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
Expand Down Expand Up @@ -69,6 +71,7 @@ jobs:
sudo cpanm Bit::Vector
- name: Setup environment
shell: bash
run: |
echo "/opt/verilator/bin" >> $GITHUB_PATH
RV_ROOT=`pwd`
Expand All @@ -79,6 +82,7 @@ jobs:
echo "TEST_PATH=$TEST_PATH" >> $GITHUB_ENV
- name: Run ${{ matrix.test }}
shell: bash
run: |
pip3 install meson
pip3 install -r $RV_ROOT/verification/top/requirements.txt
Expand All @@ -91,6 +95,7 @@ jobs:
popd
- name: Prepare pytest-html data
shell: bash
run: |
pushd ${{ github.workspace }}
WEBPAGE_DIR=webpage_${{ matrix.test }}_${{ matrix.COVERAGE }}
Expand All @@ -102,6 +107,7 @@ jobs:
popd
- name: Prepare coverage data
shell: bash
run: |
export PATH=/opt/verilator/bin:$PATH
sis -d convert --dat-dir ${TEST_PATH}
Expand Down

0 comments on commit fcc789a

Please sign in to comment.