From 6843ef439b0c0b89d3e9e8d7af50ab0dec7c7fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Thu, 20 Jun 2024 15:15:23 +0200 Subject: [PATCH] gha: Don't pull lwt packages when building async packages --- .github/workflows/workflow.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bbf81db4d..5e24631bc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -56,8 +56,7 @@ jobs: opam-local-packages: ${{ matrix.local-packages }} - run: | - sudo apt update - sudo apt upgrade + sudo apt-get update && sudo apt-get upgrade opam depext conf-libcurl if: ${{ matrix.os == 'ubuntu-latest' }} @@ -81,6 +80,12 @@ jobs: local-packages: - | *.opam + !cohttp-mirage.opam + !cohttp-curl-lwt.opam + !cohttp-lwt-jsoo.opam + !cohttp-lwt-unix.opam + !cohttp-lwt.opam + !cohttp-server-lwt-unix.opam !cohttp-eio.opam !cohttp-bench.opam @@ -100,17 +105,16 @@ jobs: opam-local-packages: ${{ matrix.local-packages }} - run: | - sudo apt update - sudo apt upgrade + sudo apt-get update && sudo apt-get upgrade opam depext conf-libcurl if: ${{ matrix.os == 'ubuntu-latest' }} - run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >>"$GITHUB_ENV" if: ${{ matrix.os == 'macos-latest' }} - - run: opam install --with-test --deps-only http cohttp cohttp-lwt cohttp-lwt-unix cohttp-server-lwt-unix cohttp-async cohttp-curl-async cohttp-mirage cohttp-curl-lwt cohttp-curl cohttp-top - - run: opam exec -- dune build http cohttp cohttp-lwt cohttp-lwt-unix cohttp-server-lwt-unix cohttp-async cohttp-curl-async cohttp-mirage cohttp-curl-lwt cohttp-curl cohttp-top - - run: opam exec -- dune runtest http cohttp cohttp-lwt cohttp-lwt-unix cohttp-server-lwt-unix cohttp-async cohttp-curl-async cohttp-mirage cohttp-curl-lwt cohttp-curl cohttp-top + - run: opam install --with-test --deps-only http cohttp cohttp-async cohttp-curl-async cohttp-curl cohttp-top + - run: opam exec -- dune build http cohttp cohttp-async cohttp-curl-async cohttp-curl cohttp-top + - run: opam exec -- dune runtest http cohttp cohttp-async cohttp-curl-async cohttp-curl cohttp-top build-test-cohttp-eio: if: github.event.pull_request.draft == false