-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 894a157
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
riscv-isa-sim | ||
spike | ||
build |
This file contains 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
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 |
This file contains 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
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 | ||
``` | ||
|
||
|