Refactor RV32I code, add RV32I tests, update Makefile, cleanup code #24
This file contains hidden or 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: Make CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Node.js for xpm | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install xpm and riscv-none-elf toolchain | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| npm install --location=global xpm@latest | |
| # create minimal manifest to avoid interactive prompts | |
| if [ ! -f package.json ]; then | |
| echo '{"name":"vbo-ci","version":"0.0.0"}' > package.json | |
| fi | |
| xpm install @xpack-dev-tools/riscv-none-elf-gcc@latest --verbose | |
| echo "${GITHUB_WORKSPACE}/xpacks/.bin" >> "$GITHUB_PATH" | |
| echo "RV_PREFIX=riscv-none-elf-" >> "$GITHUB_ENV" | |
| which riscv-none-elf-gcc | |
| riscv-none-elf-gcc --version | |
| - name: make test # test incorporates build into it | |
| run: make test |