From dce6eaca37012866cf02ba95cc3bc1f0d9037adf Mon Sep 17 00:00:00 2001 From: yashnevatia Date: Wed, 4 Dec 2024 18:11:16 +0530 Subject: [PATCH] trying with wrappers --- .github/workflows/solidity-wrappers.yml | 12 +++++++--- tools/bin/setup_zksolc.sh | 30 ++----------------------- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/.github/workflows/solidity-wrappers.yml b/.github/workflows/solidity-wrappers.yml index 2962e5c132a..eb765674882 100644 --- a/.github/workflows/solidity-wrappers.yml +++ b/.github/workflows/solidity-wrappers.yml @@ -53,11 +53,17 @@ jobs: with: prod: "true" + # - name: Run native compile and generate wrappers + # run: make wrappers + # working-directory: ./contracts + # env: + # FOUNDRY_PROFILE: ccip + - name: Run native compile and generate wrappers - run: make wrappers + run: make wrappers-all working-directory: ./contracts - env: - FOUNDRY_PROFILE: ccip + # env: + # FOUNDRY_PROFILE: ccip - name: Assume role capable of dispatching action uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # setup-github-token@0.2.1 diff --git a/tools/bin/setup_zksolc.sh b/tools/bin/setup_zksolc.sh index 1503343ce36..554d816fe6b 100755 --- a/tools/bin/setup_zksolc.sh +++ b/tools/bin/setup_zksolc.sh @@ -4,15 +4,11 @@ set -e # Specify the version of zksolc you want to install VERSION="1.5.6" -# ASSET_NAME="zksolc-linux-amd64-gnu-${VERSION}" -# ASSET_NAME="zksolc-macosx-arm64-v1.5.6" -# # Define the GitHub repository and URL for the release +# Define the GitHub repository and URL for the release REPO="matter-labs/era-compiler-solidity" GITHUB_URL="https://api.github.com/repos/$REPO/releases/tags/$VERSION" -# ASSET_NAME2="zksolc-linux-amd64-gnu-v${VERSION}" -# ASSET_NAME2="zksolc-macosx-arm64-v1.5.6" # ASSET_NAME="zksolc-macosx-arm64-v${VERSION}" ASSET_NAME="zksolc-linux-amd64-gnu-v${VERSION}" # Fetch the release info using GitHub API and get the download URL for the asset @@ -33,27 +29,5 @@ sudo curl -L "$ASSET_URL" -o /usr/local/bin/zksolc echo "Giving permission to execute" sudo chmod +x /usr/local/bin/zksolc -echo "Testing" +echo "Testing zksolc" zksolc --version - -# # Make the downloaded file executable -# chmod +x ./$ASSET_NAME - -# # Move it to a directory in your PATH (e.g., ../tools/bin) -# sudo mv ./$ASSET_NAME /usr/local/bin/zksolc - -# echo "zksolc has been installed successfully" - -# ZKSOLC_VERSION="v1.5.6" -# ZKSOLC_URL="https://github.com/matter-labs/era-compiler-solidity/releases/download/${ZKSOLC_VERSION}/zksolc-linux-amd64-gnu-${ZKSOLC_VERSION}" - -# echo "Downloading zksolc from ${ZKSOLC_URL}..." -# curl -L "${ZKSOLC_URL}" -o "zksolc" -# echo "Extracting zksolc..." -# tar -xvzf zksolc.tar.gz -# mv zksolc /usr/local/bin/zksolc - -# # Clean up -# rm zksolc.tar.gz - -# echo "zksolc installation complete." \ No newline at end of file