Skip to content

Commit a34bbd8

Browse files
authored
Merge pull request #21 from xapi-project/private/edvint/split
2 parents 04b1c1d + e9b83c4 commit a34bbd8

File tree

10 files changed

+30
-19
lines changed

10 files changed

+30
-19
lines changed

.github/workflows/ocaml-ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,27 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Pull configuration from xs-opam
1919
run: |
2020
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env
2121
2222
- name: Load environment file
2323
id: dotenv
24-
uses: falti/dotenv-action@v0.2.4
24+
uses: falti/dotenv-action@v1.1.4
2525

2626
- name: Use ocaml
27-
uses: avsm/setup-ocaml@v1
27+
uses: avsm/setup-ocaml@v3
2828
with:
29-
ocaml-version: ${{ steps.dotenv.outputs.ocaml_version_full }}
30-
opam-repository: ${{ steps.dotenv.outputs.repository }}
29+
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
30+
opam-repositories: |
31+
xs-opam: ${{ steps.dotenv.outputs.repository }}
32+
dune-cache: true
33+
opam-pin: false
34+
cache-prefix: v3-${{ steps.system-info.outputs.name }}-${{ steps.system-info.outputs.release }}
35+
env:
36+
DUNE_CACHE_STORAGE_MODE: copy
3137

3238
- name: Install dependencies
3339
run: |

META.xenstore_transport.template

Lines changed: 0 additions & 11 deletions
This file was deleted.

dune-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
(lang dune 1.0)
1+
(lang dune 2.0)
2+
23
(name xenstore-tool)

lib/dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(library
22
(name xenstore_transport)
33
(public_name xenstore_transport)
4-
(libraries lwt xenstore xenstore.client lwt.unix)
4+
(libraries
5+
(re_export xenstore_transport.unix)
6+
(re_export xenstore_transport.lwt))
57
(wrapped false)
68
(flags :standard -safe-string))

lib/lwt/dune

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(library
2+
(name xenstore_transport_lwt)
3+
(public_name xenstore_transport.lwt)
4+
(libraries lwt xenstore xenstore.client lwt.unix xenstore_transport.unix)
5+
(wrapped false)
6+
(flags
7+
(:standard -safe-string)))

lib/xs.ml renamed to lib/lwt/xs.ml

File renamed without changes.
File renamed without changes.

lib/unix/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(library
2+
(name xenstore_transport_core)
3+
(public_name xenstore_transport.unix)
4+
(libraries unix)
5+
(wrapped false)
6+
(flags :standard -safe-string))
File renamed without changes.

lib/xs_transport_unix_client.ml renamed to lib/unix/xs_transport_unix_client.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let create () =
4040
raise e
4141
end
4242
| _ ->
43-
Unix.openfile path [Lwt_unix.O_RDWR] 0o0
43+
Unix.openfile path [Unix.O_RDWR] 0o0
4444

4545
let destroy fd = Unix.close fd
4646
let read fd = Unix.read fd

0 commit comments

Comments
 (0)