From 8f5c25899f785682bf018411459988ad82cf9228 Mon Sep 17 00:00:00 2001 From: Mathieu <60658558+enitrat@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:29:52 +0700 Subject: [PATCH] ci: fix release job (#1552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes release job by: - Copying the .env file to have an EVM_PRIVATE_KEY in environment (required for build) - Adding a new `setup-ci` target that only sets up the bare minimum for the CIs to run. Proof that it works: https://github.com/enitrat/kakarot/actions/runs/11566994717 - - - This change is [Reviewable](https://reviewable.io/reviews/kkrt-labs/kakarot/1552) --- .github/workflows/cairo-zero-release.yml | 2 +- .github/workflows/ssj-ci.yml | 2 +- Makefile | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cairo-zero-release.yml b/.github/workflows/cairo-zero-release.yml index da7793f0a..2d3bed1f8 100644 --- a/.github/workflows/cairo-zero-release.yml +++ b/.github/workflows/cairo-zero-release.yml @@ -51,7 +51,7 @@ jobs: enable-cache: true cache-dependency-glob: uv.lock - name: Install dependencies - run: make setup + run: make setup-ci - name: Compile all the cairo files run: make build - name: Zip the build diff --git a/.github/workflows/ssj-ci.yml b/.github/workflows/ssj-ci.yml index 0ce4e3128..e5b8c7f00 100644 --- a/.github/workflows/ssj-ci.yml +++ b/.github/workflows/ssj-ci.yml @@ -69,7 +69,7 @@ jobs: python-version-file: .python-version - name: Install dependencies - run: make setup + run: make setup-ci - name: Load performance artifacts uses: actions/download-artifact@v3 diff --git a/Makefile b/Makefile index 9cf1a8588..941af17cf 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,11 @@ $(SSJ_ZIP): setup: @python kakarot_scripts/setup/setup.py $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) uv sync --all-extras --dev + +setup-ci: + cp .env.example .env + uv sync --all-extras --dev + katana: ; build: $(SSJ_DIR)