Skip to content

Commit 0b00a43

Browse files
committed
fix tox.ini
1 parent 169a79d commit 0b00a43

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tox.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,23 @@ extras =
7272
test
7373
lint # Required `gentest` for formatting tests
7474
allowlist_externals =
75+
sh
76+
bash
7577
mkdir
7678
curl
77-
wget
7879
chmod
7980
test
8081
solc
8182
commands_pre =
8283
# Create bin directory
8384
mkdir -p {envdir}/bin
84-
# Download solc 0.8.24
85-
curl -L -o {envdir}/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux
85+
# Download platform-specific solc
86+
sh -c 'if [ "$(uname)" = "Darwin" ]; then \
87+
curl -L -o {envdir}/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-macos; \
88+
else \
89+
curl -L -o {envdir}/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux; \
90+
fi; \
91+
fi'
8692
# Make it executable
8793
chmod +x {envdir}/bin/solc
8894
# Verify it works

0 commit comments

Comments
 (0)