-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: move to GitHub-hosted runners
- Loading branch information
Showing
10 changed files
with
122 additions
and
88 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
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
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
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: Build RISC-V riscv-gnu-toolchain | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- id: cache-riscv-gnu-toolchain | ||
uses: actions/cache@v3 | ||
with: | ||
path: .riscv-gnu-toolchain | ||
key: riscv-gnu-toolchain-${{ runner.os }} | ||
|
||
- shell: bash | ||
if: steps.cache-riscv-gnu-toolchain.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .riscv-gnu-toolchain | ||
cd .riscv-gnu-toolchain | ||
wget -q -O - https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.09.27/riscv32-elf-ubuntu-22.04-gcc-nightly-2023.09.27-nightly.tar.gz | tar -zx --transform "s/riscv/riscv32/" | ||
cd .. | ||
- shell: bash | ||
run: | | ||
echo "$(pwd)/.riscv-gnu-toolchain/riscv32/bin" >> $GITHUB_PATH | ||
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,31 @@ | ||
name: Build sail-riscv | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- id: cache-sail-riscv | ||
uses: actions/cache@v3 | ||
with: | ||
path: .sail | ||
key: sail-riscv-${{ runner.os }} | ||
|
||
- shell: bash | ||
if: steps.cache-sail-riscv.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .sail | ||
git clone --recursive https://github.com/rems-project/sail-riscv.git | ||
cd sail-riscv | ||
git checkout tags/0.5 | ||
sudo apt install -y opam build-essential libgmp-dev z3 pkg-config zlib1g-dev | ||
opam init | ||
opam switch create 4.06.1 | ||
eval $(opam config env) | ||
opam install -y sail | ||
make | ||
ARCH=RV32 make | ||
cp -r c_emulator/* ../.sail/ | ||
cd .. | ||
- shell: bash | ||
run: echo ".sail" >> $GITHUB_PATH | ||
|
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
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
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
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
Oops, something went wrong.