Skip to content

Commit

Permalink
install solc in generate files
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Aug 26, 2024
1 parent 16f2b0f commit de59aa8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/generate-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ jobs:
run: |
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Print solc version
- name: Install solc
run: |
solc --version
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
- name: Run solc and capture output
- name: Print solc version
run: |
solc IPrototype.sol --combined-json abi 2>&1 | tee solc_output.log
cat solc_output.log
solc --version
- name: Extract ABI from JSON
- name: Print abigen version
run: |
cat IPrototype.json | jq .abi > IPrototype.abi
abigen --version
- name: Run abigen and capture errors
- name: Print jq version
run: |
abigen --abi ./precompiles/prototype/IPrototype.abi --pkg prototype --type IPrototype --out ./precompiles/prototype/IPrototype.go 2>&1 | tee abigen_output.log
cat abigen_output.log
jq --version
- name: Generate Go code, docs and specs
env:
Expand Down

0 comments on commit de59aa8

Please sign in to comment.