Skip to content

Commit

Permalink
ci: fix release job (#1552)
Browse files Browse the repository at this point in the history
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
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1552)
<!-- Reviewable:end -->
  • Loading branch information
enitrat authored Oct 29, 2024
1 parent e05fc16 commit 8f5c258
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cairo-zero-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ssj-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8f5c258

Please sign in to comment.