Skip to content

Commit

Permalink
Fix monorepo caching path
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbosio committed Oct 2, 2023
1 parent dd1ad52 commit 6f8f2be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
key: opam
path: /home/runner/.opam

- name: Set Mina monorepo commit env var
- name: Clone Mina monorepo and set commit env var
run: |
git clone https://github.com/lambdaclass/mina_monorepo.git
cd mina_monorepo
Expand All @@ -61,7 +61,7 @@ jobs:
uses: actions/cache@v3
with:
key: mina_monorepo-${{ env.MINA_COMMIT }}
path: /home/runner/mina_monorepo
path: /home/runner/work/mina_bridge/mina_bridge/mina_monorepo

- name: Install opam dependencies
run: sudo apt-get install opam liblmdb-dev && opam init
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,25 @@ jobs:
key: mina_monorepo
path: /home/runner/.opam

- name: Set Mina monorepo commit env var
run: echo "MINA_COMMIT=$(cd $GITHUB_WORKSPACE/mina_monorepo && git rev-parse HEAD)" >> $GITHUB_ENV
- name: Clone Mina monorepo and set commit env var
run: |
git clone https://github.com/lambdaclass/mina_monorepo.git
cd mina_monorepo
echo "MINA_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Cache Mina monorepo packages
uses: actions/cache@v3
with:
key: mina_monorepo-${{ env.MINA_COMMIT }}
path: ${GITHUB_WORKSPACE}/mina_monorepo
path: /home/runner/work/mina_bridge/mina_bridge/mina_monorepo

- name: Install opam
run: sudo apt-get install opam liblmdb-dev && opam init

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Clone Mina monorepo
- name: Setup Mina monorepo
run: cd .. && sh setup.sh

- name: Run cargo check
Expand Down

0 comments on commit 6f8f2be

Please sign in to comment.