update #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Arch-Test | |
on: [push, pull_request] | |
# push: | |
# branches: | |
# - master | |
# pull_request: | |
# branches: | |
# - master | |
jobs: | |
model-testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Dependencies | |
run: | | |
sudo xargs apt-get install -y < .github/workflows/apt-packages.txt | |
pip3 install git+https://github.com/riscv/riscof.git | |
wget -c https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.12.20/riscv64-elf-ubuntu-22.04-gcc-nightly-2023.12.20-nightly.tar.gz | |
tar -xzf riscv64-elf-ubuntu-22.04-gcc-nightly-2023.12.20-nightly.tar.gz | |
echo riscv/bin >> $GITHUB_PATH | |
- name: Run RV32E | |
run: | | |
cd ci-tests/riscof | |
riscof arch-test --clone | |
sed -i 's/\(ispec=\)\(.*\)/\1spike\/spike_isa32e.yaml/' config.ini | |
./run-tests.sh rv32e_work | |
- name: Build spike | |
run: | | |
ci-tests/build-spike | |
echo install/bin >> $GITHUB_PATH | |
- name: Build Sail | |
run: | | |
ci-tests/build-sail | |
echo c_emulator >> $GITHUB_PATH | |
- name: Init arch-tests | |
run: | | |
riscv_sim_RV64 | |
riscv_sim_RV32 | |
spike -h | |
riscv64-unknown-elf-objdump -v | |
cd ci-tests/riscof | |
riscof arch-test --clone | |
- name: Run RV32E | |
run: | | |
cd ci-tests/riscof | |
sed -i 's/\(ispec=\)\(.*\)/\1spike\/spike_isa32e.yaml/' config.ini | |
./run-tests.sh rv32e_work | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts_rv32e | |
path: | | |
ci-tests/riscof/rv32e_work/report.html | |
ci-tests/riscof/rv32e_work/style.css | |
- name: Run RV32I | |
run: | | |
cd ci-tests/riscof | |
sed -i 's/\(ispec=\)\(.*\)/\1spike\/spike_isa32.yaml/' config.ini | |
./run-tests.sh rv32i_work | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts_rv32i | |
path: | | |
ci-tests/riscof/rv32i_work/report.html | |
ci-tests/riscof/rv32i_work/style.css | |
- name: Run RV64I | |
run: | | |
cd ci-tests/riscof | |
sed -i 's/\(ispec=\)\(.*\)/\1spike\/spike_isa64.yaml/' config.ini | |
./run-tests.sh rv64i_work | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts_rv64i | |
path: | | |
ci-tests/riscof/rv64i_work/report.html | |
ci-tests/riscof/rv64i_work/style.css |