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 =
72
72
test
73
73
lint # Required `gentest` for formatting tests
74
74
allowlist_externals =
75
+ sh
76
+ bash
75
77
mkdir
76
78
curl
77
- wget
78
79
chmod
79
80
test
80
81
solc
81
82
commands_pre =
82
83
# Create bin directory
83
84
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'
86
92
# Make it executable
87
93
chmod +x {envdir}/bin/solc
88
94
# Verify it works
You can’t perform that action at this time.
0 commit comments