File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -72,17 +72,23 @@ extras =
7272 test
7373 lint # Required `gentest` for formatting tests
7474allowlist_externals =
75+ sh
76+ bash
7577 mkdir
7678 curl
77- wget
7879 chmod
7980 test
8081 solc
8182commands_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
You can’t perform that action at this time.
0 commit comments