From c03cbb7e34ac25af98430ca8accdfa022fdffa3a Mon Sep 17 00:00:00 2001 From: Dave Aitken Date: Sun, 20 Aug 2023 18:29:39 +0100 Subject: [PATCH] try pin-depends --- .github/workflows/build.yml | 13 +++++-------- melange-decoders.opam | 5 +++++ melange-decoders.opam.template | 5 +++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 melange-decoders.opam.template diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d8473f..4ff94aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,13 +101,10 @@ jobs: uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - opam-pin: false - opam-depext: false - cache-prefix: v2 - - - run: | - opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git - opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git + opam-depext-flags: --with-test + opam-local-packages: | + decoders.opam + melange-decoders.opam - - run: opam install ./decoders.opam ./melange-decoders.opam --with-test + - run: opam exec -- dune build src-js - run: npx jest _build/default/__tests__ diff --git a/melange-decoders.opam b/melange-decoders.opam index 4fd7c0d..4d2bb3e 100644 --- a/melange-decoders.opam +++ b/melange-decoders.opam @@ -33,3 +33,8 @@ build: [ ] ] dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git" +pin-depends: [ + ["melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"] + ["melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"] + ["melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"] +] \ No newline at end of file diff --git a/melange-decoders.opam.template b/melange-decoders.opam.template new file mode 100644 index 0000000..767c40f --- /dev/null +++ b/melange-decoders.opam.template @@ -0,0 +1,5 @@ +pin-depends: [ + ["melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"] + ["melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"] + ["melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"] +] \ No newline at end of file