Skip to content

Commit

Permalink
ci: add an ci to build spike-so automatically
Browse files Browse the repository at this point in the history
This patch add github action for building spike-so. This will simplify the procedure of bumping spike-so in NEMU ready-to-run.
  • Loading branch information
cebarobot committed Aug 15, 2024
1 parent 6b8184c commit 8742ab4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-difftest-so.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI for difftest

on:
push:
branches: [difftest]
pull_request:
branches: [difftest]

jobs:
build:
name: Build spike-so for difftest
runs-on: ubuntu-latest
strategy:
matrix:
cpu: [xiangshan, nutshell, rocket_chip]
continue-on-error: false
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Dependencies
run: sudo xargs apt-get install -y < .github/workflows/apt-packages.txt

- name: build spike-so
run: |
BUILD_CPU=${{ matrix.cpu }}
make -C difftest CPU=${BUILD_CPU^^} -j4
- name: archive spike-so artifacts
uses: actions/upload-artifact@v4
with:
name: riscv64-${{ matrix.cpu }}-spike-so
path: difftest/build/riscv64-spike-so

0 comments on commit 8742ab4

Please sign in to comment.