mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Implement initial version of fuzzing in CI (#7316)
* Implement initial version of fuzzing * try nix config * try rustup * rustup run * Fix syntax * wip * specific nightly * wip * specific nightly with+ * install * locked
This commit is contained in:
parent
d746e2a041
commit
a5bcf55d08
3 changed files with 40 additions and 10 deletions
25
crates/compiler/test_syntax/fuzz/fuzz.nix
Normal file
25
crates/compiler/test_syntax/fuzz/fuzz.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
(pkgs.rustup.override {
|
||||
targets = ["x86_64-unknown-linux-gnu"]; # Adjust for your desired target
|
||||
})
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
# Ensure rustup is initialized
|
||||
export RUSTUP_HOME="$PWD/.rustup"
|
||||
export CARGO_HOME="$PWD/.cargo"
|
||||
mkdir -p $RUSTUP_HOME $CARGO_HOME
|
||||
|
||||
# Install Rust nightly
|
||||
rustup install nightly
|
||||
rustup default nightly
|
||||
|
||||
# Add rustup and cargo to PATH
|
||||
export PATH="$CARGO_HOME/bin:$PATH"
|
||||
|
||||
echo "Rust nightly and Cargo are available on PATH."
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue