Skip to content

Commit

Permalink
Make sure Irmin deps are solved from its lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
pitag-ha committed Dec 2, 2023
1 parent 1a76e08 commit ad0b21e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/fuzzy-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,17 @@ jobs:
- name: Decompress Irmin tarball
run: tar xvf irmin-$IRMIN_VERSION.tbz -C irmin --strip-components=1

- name: Get Irmin's lock file
- name: Get Irmin's lock files
run: |
# Checking out the merge branch to get the updated lock file in case of lock file update
# If the lock files are updated in the PR (e.g. the PR upgrades the OCaml version), they need to be checked out to the right branch
git checkout ${{ github.sha }}
cp .github/workflows/fuzzy-ci-helpers/irmin-$IRMIN_VERSION.opam-locked irmin/irmin.opam.locked
cp .github/workflows/fuzzy-ci-helpers/irmin*.opam.locked irmin/
- name: Install Irmin's dependencies
run: |
opam install ./irmin.opam.locked --yes
opam pin add irmin . --locked --with-test --deps-only --yes
opam pin add irmin-pack . --locked --with-test --deps-only --yes
opam pin add irmin-tezos . --locked --with-test --deps-only --yes
working-directory: irmin

- name: Prune Irmin
Expand Down

0 comments on commit ad0b21e

Please sign in to comment.