-
Notifications
You must be signed in to change notification settings - Fork 12
/
cloudexec.toml
61 lines (54 loc) · 1.76 KB
/
cloudexec.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Set the directory to upload to the droplet .
# Release Echidna Link: # https://github.com/crytic/echidna/actions/runs/7571678101/artifacts/1178391144
[input]
directory = "."
timeout = "96h"
jobName = "echidna"
[commands]
setup = '''
if ! command -v slither >/dev/null 2>&1; then
echo "Installing solc and slither..."
python3 -m venv ~/venv
source ~/venv/bin/activate
pip3 install solc-select slither-analyzer crytic-compile
solc-select install 0.8.17
solc-select use 0.8.17
fi
echo "Downloading echidna..."
curl -Lo /tmp/echidna.zip \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer API_READ_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/crytic/echidna/actions/artifacts/1224643945/zip
echo "Extracting echidna..."
unzip /tmp/echidna.zip -d /tmp
tar -xzf /tmp/echidna.tar.gz -C /tmp
echo "Installing echidna..."
mv -f /tmp/echidna /usr/local/bin
rm /tmp/echidna.tar.gz
echo "Installed echidna!"
echo "Downloading medusa..."
curl -Lo /tmp/medusa.zip \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer API_READ_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/crytic/medusa/actions/artifacts/1240540805/zip
unzip /tmp/medusa.zip -d /tmp
tar -xzf /tmp/medusa.tar.gz -C /tmp
echo "Installing medusa..."
chmod +x /tmp/medusa
sudo mv -f /tmp/medusa /usr/local/bin
echo "Installed medusa!"
if ! command -v forge >/dev/null 2>&1; then
echo "Installing foundry..."
curl -L https://foundry.paradigm.xyz | bash
source /.bashrc
foundryup
fi
echo "Prerequisites installed successfully!"
echo "Forge version:"
forge --version
'''
# This command is run from the input directory
# after the setup script completes.
run = "source /.bashrc && forge --version && make ec"