Skip to content

Consolidate on XPack GCC and move to Github Actions #10

Consolidate on XPack GCC and move to Github Actions

Consolidate on XPack GCC and move to Github Actions #10

Workflow file for this run

name: Continuous Integration
on: [push, pull_request]
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Cache Scala
uses: coursier/cache-action@v5
- name: Install dependencies
run: |
sudo apt install verilator cmake -y
wget -q https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v14.2.0-2/xpack-riscv-none-elf-gcc-14.2.0-2-linux-x64.tar.gz -O riscv-none-elf-gcc.tar.gz
sudo mkdir -p /opt/riscv-none-elf-gcc
tar xf riscv-none-elf-gcc.tar.gz --directory=/opt/riscv-none-elf-gcc
echo "RISCV_TOOL_PATH_PREFIX=/opt/riscv-none-elf-gcc" >> $GITHUB_ENV
- name: Run Chisel unit tests
run: sbt 'test'
- name: Build emulator and SDK
run: source env.bash && cmake -Bbuild && cd build && make all install
- name: Run C tests
run: |
source env.bash
cd sdk && cmake -B build && cd build && make && ctest
- name: Run multithreaded C tests
run: |
source env.bash
# Run multiple tests with script
./scripts/run_multiple_tests.sh