Skip to content

Commit

Permalink
Don't run opam init in CI if cache is present (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatplguy authored Nov 14, 2024
1 parent e9d7daf commit e152e81
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-cn-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ jobs:
path: ~/.opam
key: ${{ matrix.version }}

- name: Setup opam and install dependencies
- name: Setup opam
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
run: opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}

- name: Install dependencies
run: |
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
opam switch ${{ matrix.version }}
eval $(opam env --switch=${{ matrix.version }})
opam install --deps-only --yes ./cerberus.opam ./cerberus-lib.opam ./cn.opam
- name: Save cached opam
Expand Down

0 comments on commit e152e81

Please sign in to comment.