mirror of
https://github.com/Z3Prover/z3
synced 2026-07-27 09:22:41 +00:00
ci: fix macOS opam stale-cache patch error by removing manual ~/.opam cache
The manual actions/cache step for ~/.opam was causing OpamSystem.Internal_patch_error on macOS when a restore-key hit returned a stale opam repo state incompatible with the current upstream. ocaml/setup-ocaml@v3 has built-in cache management that handles this correctly, so the manual step is removed.
This commit is contained in:
parent
475af3e5c5
commit
02a1aec6ca
1 changed files with 4 additions and 12 deletions
16
.github/workflows/ocaml.yaml
vendored
16
.github/workflows/ocaml.yaml
vendored
|
|
@ -28,21 +28,13 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-ccache-
|
||||
|
||||
# Cache opam (compiler + packages)
|
||||
- name: Cache opam
|
||||
uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: ~/.opam
|
||||
key: ${{ runner.os }}-opam-${{ matrix.ocaml-version }}-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-opam-${{ matrix.ocaml-version }}-
|
||||
|
||||
# Setup OCaml via action
|
||||
# Setup OCaml via action (handles opam caching internally)
|
||||
- uses: ocaml/setup-ocaml@v3
|
||||
with:
|
||||
ocaml-compiler: ${{ matrix.ocaml-version }}
|
||||
opam-disable-sandboxing: true
|
||||
|
||||
cache-prefix: v1
|
||||
|
||||
# Platform-specific dependencies
|
||||
- name: Install system dependencies (Ubuntu)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
|
|
@ -123,4 +115,4 @@ jobs:
|
|||
- name: Run ml_example (native)
|
||||
run: |
|
||||
export DYLD_LIBRARY_PATH=$(pwd)/build
|
||||
./ml_example
|
||||
./ml_example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue