diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-09-23 16:06:21 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-09-23 16:06:21 -0700 |
commit | d17b1767885000ed829eee9e985ae4a680f13377 (patch) | |
tree | 47f1877d85860754e942f2a73c8cd031c3e36861 /ci-tests/create-ci-binary-tarball | |
parent | 7668b414bb84798f2f57bbd1d9708b72b091c362 (diff) | |
download | spike-d17b1767885000ed829eee9e985ae4a680f13377.zip spike-d17b1767885000ed829eee9e985ae4a680f13377.tar.gz spike-d17b1767885000ed829eee9e985ae4a680f13377.tar.bz2 |
Actually run a program in CI
To avoid long CI times, keep the program in binary form.
To avoid storing binary files in this repository, store the binaries as
an asset on a github release.
Diffstat (limited to 'ci-tests/create-ci-binary-tarball')
-rwxr-xr-x | ci-tests/create-ci-binary-tarball | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ci-tests/create-ci-binary-tarball b/ci-tests/create-ci-binary-tarball new file mode 100755 index 0000000..b4fa545 --- /dev/null +++ b/ci-tests/create-ci-binary-tarball @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +rm -rf build + +mkdir -p build/pk && cd "$_" +`git rev-parse --show-toplevel`/../riscv-pk/configure --host=riscv64-unknown-elf +make -j4 +cd - + +mkdir -p build/hello && cd "$_" +riscv64-unknown-elf-gcc -O2 -o hello `git rev-parse --show-toplevel`/ci-tests/hello.c +cd - + +mv build/pk/pk . +mv build/hello/hello . + +tar -cf spike-ci.tar pk hello + +rm pk hello |