Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/actions/get-solc/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Install Solidity Compiler"
description: "Installs the Ethereum solc Solidity compiler frontend executable"

runs:
using: "composite"
steps:
- name: Figure out Solc Download URL
shell: bash
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
echo "SOLC_NAME=solc-static-linux" >> $GITHUB_ENV
elif [[ "${{ runner.os }}" == "Windows" ]]; then
echo "SOLC_NAME=solc-windows.exe" >> $GITHUB_ENV
else
echo "SOLC_NAME=solc-macos" >> $GITHUB_ENV
fi

- name: Download Solc
shell: bash
run: |
mkdir -p solc
curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.30/${SOLC_NAME}

- name: Make Solc Executable
if: ${{ runner.os == 'Windows' }}
shell: bash
run: |
echo "$(pwd -W)\\solc" >> $GITHUB_PATH
mv solc/solc solc/solc.exe

- name: Make Solc Executable
if: ${{ runner.os != 'Windows' }}
shell: bash
run: |
echo "$(pwd)/solc" >> $GITHUB_PATH
chmod +x solc/solc
xattr -x solc/solc
18 changes: 9 additions & 9 deletions .github/workflows/tests-evm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: paritytech/revive-differential-tests
ref: a6e4932a08b1ca231e4a02ca6e54e08a53f0e786
ref: 66feb36b4ef2c79415ca8ea765d8235d48dfa8f8
path: revive-differential-tests
submodules: recursive
- name: Installing Retester
Expand All @@ -60,7 +60,7 @@ jobs:
run: mkdir workdir
- name: Downloading & Initializing the compilation caches
run: |
curl -fL --retry 3 --retry-all-errors --connect-timeout 10 -o cache.tar.gz "https://github.com/paritytech/revive-differential-tests/releases/download/compilation-caches-v1.0/cache.tar.gz"
curl -fL --retry 3 --retry-all-errors --connect-timeout 10 -o cache.tar.gz "https://github.com/paritytech/revive-differential-tests/releases/download/compilation-caches-v1.1/cache.tar.gz"
tar -zxf cache.tar.gz -C ./workdir > /dev/null 2>&1
- name: Running the Differential Tests
run: |
Expand All @@ -71,7 +71,7 @@ jobs:
--platform ${{ matrix.platform }} \
--concurrency.number-of-nodes 10 \
--concurrency.number-of-threads 10 \
--concurrency.number-of-concurrent-tasks 1000 \
--concurrency.number-of-concurrent-tasks 100 \
--working-directory ./workdir \
--revive-dev-node.consensus manual-seal-200 \
--revive-dev-node.path ./target/release/revive-dev-node \
Expand Down Expand Up @@ -109,6 +109,9 @@ jobs:
# but still want to have debug assertions.
RUSTFLAGS: "-C debug-assertions"
RUST_BACKTRACE: 1
strategy:
matrix:
platform: ["test:pvm", "test:evm"]
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -122,7 +125,7 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: paritytech/evm-test-suite
ref: 4dc2658b3c944d65e4624fad87e7532c9253448e
ref: f3a2e98620adfc233166728230247d479a159e76
path: evm-test-suite

- uses: denoland/setup-deno@v2
Expand All @@ -141,11 +144,8 @@ jobs:
export ETH_RPC_PATH=$(readlink -f ../target/release/eth-rpc)
echo $REVIVE_DEV_NODE_PATH $ETH_RPC_PATH

echo "== Running pvm tests ==j"
START_REVIVE_DEV_NODE=true START_ETH_RPC=true deno task test:pvm

echo "== Running evm tests =="
START_REVIVE_DEV_NODE=true START_ETH_RPC=true deno task test:evm
echo "== Running tests =="
START_REVIVE_DEV_NODE=true START_ETH_RPC=true deno task ${{ matrix.platform }}

confirm-required-test-evm-jobs-passed:
runs-on: ubuntu-latest
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/tests-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
shell: bash
run: |
# Fail the step if any command in a pipeline errors out.
set -euo pipefail
set -euo pipefail
ARTIFACTS_DIR=./artifacts
BENCH_TRIE_READ=::trie::read::small
BENCH_NODE_IMPORT=::node::import::sr25519::transfer_keep_alive::paritydb::small
Expand Down Expand Up @@ -377,16 +377,8 @@ jobs:
rustup component add clippy rust-docs rust-src rustfmt rustc rust-std
- name: Install protobuf
run: brew install protobuf
# - name: install solc
# run: brew install solidity
- name: Install solc
run: |
# Install solc 0.8.30 directly (0.8.31+ not supported by resolc)
SOLC_VERSION="0.8.30"
curl -Lsf --show-error -o $HOME/.cargo/bin/solc "https://github.com/ethereum/solidity/releases/download/v${SOLC_VERSION}/solc-macos"
chmod +x $HOME/.cargo/bin/solc
xattr -c $HOME/.cargo/bin/solc
$HOME/.cargo/bin/solc --version
- name: Install Solc
uses: ./.github/actions/get-solc
- name: Install resolc
run: |
source $HOME/.cargo/env
Expand Down
Loading
Loading