From de59aa8295d40a2b4073be980a7f7be4c6a37a7e Mon Sep 17 00:00:00 2001 From: skosito Date: Mon, 26 Aug 2024 23:04:28 +0200 Subject: [PATCH] install solc in generate files --- .github/workflows/generate-files.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/generate-files.yml b/.github/workflows/generate-files.yml index 90b6423127..cbefdf0340 100644 --- a/.github/workflows/generate-files.yml +++ b/.github/workflows/generate-files.yml @@ -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: