Skip to content

add some configs about ci test of H extension #240

add some configs about ci test of H extension

add some configs about ci test of H extension #240

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
riscv64-compile-check:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup env
run: |
sudo apt update
sudo apt install wget git tmux make gcc curl libreadline6-dev libsdl2-dev gcc-riscv64-linux-gnu zlib1g-dev device-tree-compiler autoconf
- name: Build NEMU interpreter
run: |
export NEMU_HOME=$(pwd)
make riscv64-xs_defconfig
make -j
- name: test boot linux
run: |
export NEMU_HOME=$(pwd)
git submodule update --init ready-to-run
# test boot linux
./build/riscv64-nemu-interpreter -b ./ready-to-run/linux.bin
make clean-all
- name: test cpt taking and restoring
run: |
export NEMU_HOME=$(pwd)
make riscv64-xs-novga_defconfig
make -j
cd resource/gcpt_restore && make && cd $NEMU_HOME
# take cpt, and put cpt in output_top/test/linux
bash ./scripts/take.sh
# restore cpt
bash ./scripts/restore.sh
make clean-all
- name: Build NEMU as difftest ref
run: |
export NEMU_HOME=$(pwd)
make riscv64-xs-ref_defconfig
make -j
make clean-all
- name: Build NEMU as difftest dual ref
run: |
export NEMU_HOME=$(pwd)
make riscv64-dual-xs-ref_defconfig
make -j
make clean-all