Skip to content

Commit d6a8d0a

Browse files
pin solc version to 0.8.30 in tests-misc.yml (#10558)
pin solc version to 0.8.30 in tests-misc.yml --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 68c1250 commit d6a8d0a

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

.github/workflows/tests-misc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

prdoc/pr_10558.prdoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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: []

0 commit comments

Comments
 (0)