Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyCst committed Nov 14, 2024
0 parents commit 894a157
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install device-tree-compiler libboost-regex-dev libboost-system-dev gcc-riscv64-unknown-elf
- name: Build
run: make
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
spike
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
riscv-isa-sim
spike
build
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
all: spike

.PHONY: clean

spike:
# Unfortunately there is no tag on the Spike repo, so we pick the latest
-git clone --depth 1 https://github.com/riscv-software-src/riscv-isa-sim.git
mkdir build
cd build && ../riscv-isa-sim/configure && make -j `nproc` && cp spike ../

clean:
-rm -rf build riscv-isa-sim spike
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Spike CI Artifact

This repository automates the build of [Spike](https://github.com/riscv-software-src/riscv-isa-sim) for the purpose of generating that can be used from Github CI.

## How to release new binaries

Create a new tag and push it to upstream, e.g.:

```sh
git tag v0.1.0
git push origin v0.1.0
```


0 comments on commit 894a157

Please sign in to comment.