Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run opam init in CI if cache is present #99

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading