Skip to content

Commit

Permalink
Merge pull request #52 from smorimoto/disable-setup-ocaml-cache
Browse files Browse the repository at this point in the history
Use a random number as the cache prefix to disable cache in CI
  • Loading branch information
abbysmal authored Oct 27, 2021
2 parents d9f57e5 + a9ce266 commit 49895f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Generate random number
id: random
shell: pwsh
run: Write-Output "::set-output name=number::$(Get-Random)"

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ocaml-variants.${{ matrix.ocaml-compiler }}
opam-repositories: |
multicore: https://github.com/ocaml-multicore/multicore-opam.git
default: https://github.com/ocaml/opam-repository.git
cache-prefix: ${{ steps.random.outputs.number }}

- run: opam install . --deps-only

Expand Down

0 comments on commit 49895f0

Please sign in to comment.