Speed up CI by installing foundry with Github action (#4505)
## Issue Addressed Speed up CI by installing foundry with Github action instead of building Anvil from source. Building anvil from source on GItHub hosted runners currently takes about 10 mins. Using the `foundry-toolchain` action to install only takes about 2 seconds.
This commit is contained in:
parent
f2223feb21
commit
a25ec16a67
25
.github/workflows/test-suite.yml
vendored
25
.github/workflows/test-suite.yml
vendored
@ -58,8 +58,8 @@ jobs:
|
|||||||
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
- name: Run tests in release
|
- name: Run tests in release
|
||||||
run: make test-release
|
run: make test-release
|
||||||
release-tests-windows:
|
release-tests-windows:
|
||||||
@ -78,9 +78,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
choco install python protoc visualstudio2019-workload-vctools -y
|
choco install python protoc visualstudio2019-workload-vctools -y
|
||||||
npm config set msvs_version 2019
|
npm config set msvs_version 2019
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
# Extra feature to work around https://github.com/foundry-rs/foundry/issues/5115
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil --features ethers/ipc
|
|
||||||
- name: Install make
|
- name: Install make
|
||||||
run: choco install -y make
|
run: choco install -y make
|
||||||
- uses: KyleMayes/install-llvm-action@v1
|
- uses: KyleMayes/install-llvm-action@v1
|
||||||
@ -141,8 +140,8 @@ jobs:
|
|||||||
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
- name: Run tests in debug
|
- name: Run tests in debug
|
||||||
run: make test-debug
|
run: make test-debug
|
||||||
state-transition-vectors-ubuntu:
|
state-transition-vectors-ubuntu:
|
||||||
@ -197,8 +196,8 @@ jobs:
|
|||||||
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
- name: Run the beacon chain sim that starts from an eth1 contract
|
- name: Run the beacon chain sim that starts from an eth1 contract
|
||||||
run: cargo run --release --bin simulator eth1-sim
|
run: cargo run --release --bin simulator eth1-sim
|
||||||
merge-transition-ubuntu:
|
merge-transition-ubuntu:
|
||||||
@ -213,8 +212,8 @@ jobs:
|
|||||||
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
- name: Run the beacon chain sim and go through the merge transition
|
- name: Run the beacon chain sim and go through the merge transition
|
||||||
run: cargo run --release --bin simulator eth1-sim --post-merge
|
run: cargo run --release --bin simulator eth1-sim --post-merge
|
||||||
no-eth1-simulator-ubuntu:
|
no-eth1-simulator-ubuntu:
|
||||||
@ -243,8 +242,8 @@ jobs:
|
|||||||
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install anvil
|
- name: Install Foundry (anvil)
|
||||||
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
- name: Run the syncing simulator
|
- name: Run the syncing simulator
|
||||||
run: cargo run --release --bin simulator syncing-sim
|
run: cargo run --release --bin simulator syncing-sim
|
||||||
doppelganger-protection-test:
|
doppelganger-protection-test:
|
||||||
|
Loading…
Reference in New Issue
Block a user