Skip to content

Commit

Permalink
Add opam cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid committed Oct 3, 2019
1 parent 2adac7a commit 8caa33f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .artifactignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.git
5 changes: 5 additions & 0 deletions .ci/opam-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ steps:
- task: NodeTool@0
inputs:
versionSpec: '8.9'
displayName: Cache opam
- script: brew install gpatch
displayName: 'brew install gpatch'
- script: brew install opam
Expand All @@ -18,6 +19,10 @@ steps:
displayName: 'opam remove default'
- script: opam update
displayName: 'opam update'
- task: CacheBeta@0
inputs:
key: opam | $(Agent.OS) | reason.opam | .artifactignore | $(CACHE_NUMBER)
path: $(OPAMROOT)
- script: opam switch create $(OCAML_VERSION)
displayName: 'Use OCaml version: $(OCAML_VERSION)'
- script: opam install -y dune
Expand Down
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ stages:
- job: Mac
strategy:
matrix: {
"opam_4090": { OCAML_VERSION: 4.09.0 },
"opam_4080": { OCAML_VERSION: 4.08.0 },
"opam_4071": { OCAML_VERSION: 4.07.1 },
"opam_4061": { OCAML_VERSION: 4.06.1 },
"opam_4023": { OCAML_VERSION: 4.02.3 }
"opam_4090": { OCAML_VERSION: 4.09.0, CACHE_NUMBER: 4_09_0, OPAMROOT: $(Pipeline.Workspace)/.opam },
"opam_4080": { OCAML_VERSION: 4.08.0, CACHE_NUMBER: 4_08_0, OPAMROOT: $(Pipeline.Workspace)/.opam },
"opam_4071": { OCAML_VERSION: 4.07.1, CACHE_NUMBER: 4_07_1, OPAMROOT: $(Pipeline.Workspace)/.opam },
"opam_4061": { OCAML_VERSION: 4.06.1, CACHE_NUMBER: 4_06_1, OPAMROOT: $(Pipeline.Workspace)/.opam },
"opam_4023": { OCAML_VERSION: 4.02.3, CACHE_NUMBER: 4_02_3, OPAMROOT: $(Pipeline.Workspace)/.opam }
}
timeoutInMinutes: 0
pool:
Expand Down

0 comments on commit 8caa33f

Please sign in to comment.