Skip to content

Commit

Permalink
Simplify build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotro888 committed Nov 29, 2023
1 parent c207b62 commit 2a0e9d1
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,48 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/piotro888/riscv-toolchain:2023.11.15
timeout-minutes: 10
env:
PYENV_ROOT: "/root/.pyenv"
LC_ALL: "C.UTF8"
LANG: "C.UTF8"
defaults:
run:
working-directory: test/external/riscof/
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PATH
run: echo "/.pyenv/bin" >> $GITHUB_PATH

- name: Setup pyenv python
run: |
cd test/external/riscof/
export PATH=/.pyenv/bin:$PATH PYENV_ROOT=/root/.pyenv
eval "$(pyenv init --path)"
pyenv global 3.6.15
. /venv3.6/bin/activate
- name: Setup arch test suite
run: |
export PATH=/.pyenv/bin:$PATH PYENV_ROOT=/root/.pyenv
export LC_ALL=C.UTF-8 LANG=C.UTF-8
cd test/external/riscof/
. /venv3.6/bin/activate
riscof --verbose info arch-test --clone
riscof testlist --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env
- name: Build and run tests on reference and generate Makefiles
run: |
export PATH=/.pyenv/bin:$PATH PYENV_ROOT=/root/.pyenv
export LC_ALL=C.UTF-8 LANG=C.UTF-8
cd test/external/riscof/
. /venv3.6/bin/activate
riscof run --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env
- name: Build tests for Coreblocks
run: |
MAKEFILE_PATH=test/external/riscof/riscof_work/Makefile.build-DUT-coreblocks ./ci/riscof_run_makefile.sh
MAKEFILE_PATH=riscof_work/Makefile.build-DUT-coreblocks ../../../ci/riscof_run_makefile.sh
- uses: actions/upload-artifact@v3
with:
name: "riscof-tests"
path: test/external/riscof/
path: |
test/external/riscof/riscv-arch-test/**/*.elf
test/external/riscof/riscof_work/**/*.signature
test/external/riscof/**/*Makefile*
run-riscof-tests:
name: Run regression tests (riscv-arch-test)
Expand Down Expand Up @@ -89,6 +94,8 @@ jobs:

- name: Run tests on Coreblocks
run: |
ls .
ls test/external/riscof
. venv/bin/activate
MAKEFILE_PATH=test/external/riscof/riscof_work/Makefile.run-DUT-coreblocks NPROC=1 ./ci/riscof_run_makefile.sh
Expand Down

0 comments on commit 2a0e9d1

Please sign in to comment.