Browse Source

[ci] install libuv manually on Linux

Aurel Bílý 6 years ago
parent
commit
7408547e59
2 changed files with 15 additions and 1 deletions
  1. 2 1
      extra/azure-pipelines/build-linux.yml
  2. 13 0
      extra/azure-pipelines/install-libuv.yml

+ 2 - 1
extra/azure-pipelines/build-linux.yml

@@ -16,8 +16,9 @@ jobs:
           set -ex
           sudo add-apt-repository ppa:avsm/ppa -y # provides newer version of OCaml and OPAM
           sudo apt-get update -qqy
-          sudo apt-get install -qqy ocaml-nox camlp5 opam libpcre3-dev zlib1g-dev libuv1-dev libgtk2.0-dev ninja-build
+          sudo apt-get install -qqy ocaml-nox camlp5 opam libpcre3-dev zlib1g-dev libgtk2.0-dev ninja-build
         displayName: Install dependencies
+      - template: install-libuv.yml
       - template: install-neko-snapshot.yaml
         parameters:
           platform: linux64

+ 13 - 0
extra/azure-pipelines/install-libuv.yml

@@ -0,0 +1,13 @@
+steps:
+  - bash: |
+      set -ex
+      DOWNLOADDIR=$(Agent.TempDirectory)
+      curl -sSL -o "$(Agent.TempDirectory)/libuv-v1.31.0.tar.gz" --retry 3 https://github.com/libuv/libuv/archive/v1.31.0.tar.gz
+      tar -xf $(Agent.TempDirectory)/libuv-v1.31.0.tar.gz -C $(Agent.TempDirectory)
+      pushd $(Agent.TempDirectory)/libuv-v1.31.0
+      sh autogen.sh
+      ./configure
+      make
+      make install
+      popd
+    displayName: Install libuv v1.31.0