From 4f9393a2890109ffea9c481e78cabc47a47c381b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Fri, 25 Oct 2024 18:52:13 -0300 Subject: [PATCH] debug --- .github/workflows/daily.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index ee264a748..713f068b0 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -35,6 +35,10 @@ jobs: - 748000 - 749000 fail-fast: false + defaults: + run: + shell: bash + working-directory: ./starknet-replay steps: # We checkout replay first, as it's the main repository for this workflow @@ -42,13 +46,18 @@ jobs: uses: actions/checkout@v4 with: repository: lambdaclass/starknet-replay - path: . + path: starknet-replay # We need native for building the runtime, so we checkout it to a subdirectory - name: Checkout Native uses: actions/checkout@v4 with: path: cairo_native + + - run: ls + - run: pwd + + # Install dependencies - uses: ./cairo_native/.github/actions/install-linux-deps - name: Setup rust env @@ -58,14 +67,17 @@ jobs: - name: Build Cairo Native Runtime Library shell: bash run: | - cd cairo_native + cd ../cairo_native make runtime echo "CAIRO_NATIVE_RUNTIME_LIBRARY=$(pwd)/libcairo_native_runtime.a" > $GITHUB_ENV + - name: Patch dependencies run: | # Patches native dependency to local path, to use current cairo native version - sed -Ei "s/^(cairo-native = \{).*/\1 path = 'cairo_native' }/" Cargo.toml + DEPENDENCY="cairo-native" + NEW_PATH="../cairo_native" + sed -Ei "s/^($DEPENDENCY\s*=).*/\1 { path = '$NEW_PATH' }/" Cargo.toml - name: Run with Native run: |