Skip to content

Commit

Permalink
Correct the caching of the solidity compiler. (#3370)
Browse files Browse the repository at this point in the history
## Motivation

The caching is not working for the solidity compiler `solc`. We correct
here the problem.

## Proposal

Correct the CI code in order to have the solc compiler.

## Test Plan

The CI.

## Release Plan

Not relevant.
  • Loading branch information
MathieuDutSik authored Feb 19, 2025
1 parent 2c027f9 commit 7aeadde
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: foundry-rs/[email protected]
- name: Cache solc
- name: Ensure Solc Directory Exists
run: mkdir -p /home/runner/.solc
- name: Cache Solc
id: cache-solc
uses: actions/cache@v4
with:
Expand All @@ -177,6 +179,14 @@ jobs:
uses: pontem-network/get-solc@master
with:
version: v0.8.25
- name: Add Solc to PATH
run: echo "/home/runner/.solc" >> $GITHUB_PATH
- name: List the content of the Solc cache
run: ls /home/runner/.solc/v0.8.25/solc-static-linux
- name: Create a Solc symbolic link
run: ln -sf /home/runner/.solc/v0.8.25/solc-static-linux /home/runner/.solc/solc
- name: Check if Solc is in PATH
run: which solc || echo "Solc not found in PATH"
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -188,7 +198,7 @@ jobs:
run: |
cargo test -p linera-ethereum --features ethereum
cargo test test_wasm_end_to_end_ethereum_tracker --features ethereum,storage-service,unstable-oracles
storage-service-tests:
runs-on: ubuntu-latest-16-cores
timeout-minutes: 40
Expand Down

0 comments on commit 7aeadde

Please sign in to comment.