This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 325
70 lines (65 loc) · 1.96 KB
/
dump_katana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: dump-katana
on:
push:
branches:
- main
permissions: read-all
jobs:
dump-katana:
runs-on: ubuntu-latest
env:
STARKNET_NETWORK: katana
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-${{ runner.os }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- run: poetry config installer.modern-installation false
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: make setup
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Retrieve cached dependencies
uses: Swatinem/rust-cache@v2
- name: Install Katana
run: make install-katana
## create dump
- name: create katana dump
run: |
cp .env.example .env
make run-katana-with-dump & (make deploy && kill -2 $(lsof -t -i :5050))
## upload artifacts
- name: upload kakarot on katana dump
uses: actions/upload-artifact@v3
with:
path: ./kakarot-katana-dump
name: kakarot-katana-dump
- name: upload kakarot on katana deployments
uses: actions/upload-artifact@v3
with:
path: ./deployments/katana
name: katana-deployments