File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed
Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 1+ name : " Install Solidity Compiler"
2+ description : " Installs the Ethereum solc Solidity compiler frontend executable"
3+
4+ runs :
5+ using : " composite"
6+ steps :
7+ - name : Figure out Solc Download URL
8+ shell : bash
9+ run : |
10+ if [[ "${{ runner.os }}" == "Linux" ]]; then
11+ echo "SOLC_NAME=solc-static-linux" >> $GITHUB_ENV
12+ elif [[ "${{ runner.os }}" == "Windows" ]]; then
13+ echo "SOLC_NAME=solc-windows.exe" >> $GITHUB_ENV
14+ else
15+ echo "SOLC_NAME=solc-macos" >> $GITHUB_ENV
16+ fi
17+
18+ - name : Download Solc
19+ shell : bash
20+ run : |
21+ mkdir -p solc
22+ curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.30/${SOLC_NAME}
23+
24+ - name : Make Solc Executable
25+ if : ${{ runner.os == 'Windows' }}
26+ shell : bash
27+ run : |
28+ echo "$(pwd -W)\\solc" >> $GITHUB_PATH
29+ mv solc/solc solc/solc.exe
30+
31+ - name : Make Solc Executable
32+ if : ${{ runner.os != 'Windows' }}
33+ shell : bash
34+ run : |
35+ echo "$(pwd)/solc" >> $GITHUB_PATH
36+ chmod +x solc/solc
37+ xattr -x solc/solc
Original file line number Diff line number Diff line change @@ -377,8 +377,8 @@ jobs:
377377 rustup component add clippy rust-docs rust-src rustfmt rustc rust-std
378378 - name : Install protobuf
379379 run : brew install protobuf
380- - name : install solc
381- run : brew install solidity
380+ - name : Install Solc
381+ uses : ./.github/actions/get-solc
382382 - name : Install resolc
383383 run : |
384384 source $HOME/.cargo/env
Original file line number Diff line number Diff line change 1+ title: pin solc version to 0.8.30 in tests-misc.yml
2+ doc:
3+ - audience: Runtime Dev
4+ description: pin solc version to 0.8.30 in tests-misc.yml
5+ crates: []
You can’t perform that action at this time.
0 commit comments