- Install rust
- Clone the repo
- Install the
insta
command forcargo
cargo install cargo-insta
- Install
graphviz
on your system. You'll need adot
executable in your path.
- Install llvm 18 with
brew install llvm@18
- If you get an error with this step, try upgrading MacOS to at least Sonoma (14)
- Add llvm to PATH in your
.zshrc
file:export PATH="/opt/homebrew/Cellar/llvm/18.1.5/bin/:$PATH"
- Open a new terminal (
source
ing alone may not work). - Run
make runtime
to install the bril llvm runtime. If this fails, try runningcargo clean
inruntime
and trying again. - You may need to add LSystem to your path:
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
- Run the tests with
make
and ensure things build and run without errors.
- Install llvm 18. For Ubuntu users, we have a script for installation:
./install_ubuntu.sh
- Run
make runtime
to install the bril llvm runtime. - Run the tests with
make
and ensure things build and run without errors.
- Add a bril file under
tests/
. - Run
cargo insta review
to confirm the output for the new file.
- Make sure you have the command
hyperfine
(install if not). - Run
bash infra/localnightly.sh <bril file or directory>
To run the nightly server for an existing nightly, run cd nightly/output && python3 -m http.server
.