From d2d4b017f85b41df6325233d9131d7add6a3a075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= Date: Mon, 9 Oct 2017 10:04:17 +0200 Subject: [PATCH] try circleci build --- .circleci/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..024214b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,24 @@ +version: 2 +jobs: + build: + docker: + - image: base/archlinux + steps: + - checkout + - run: + name: Install build dependencies + command: pacman -Syu && pacman -S --noconfirm cmake ninja gcc libx11 python2 p7zip git + - run: + name: Enable python2 + command: mkdir -p /tmp/python_for_libwebrtc_build && ln -s /usr/bin/python2 /tmp/python_for_libwebrtc_build/python + - run: + name: Run cmake + command: PATH=/tmp/python_for_libwebrtc_build:$PATH cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWEBRTC_BRANCH_HEAD=refs/branch-heads/60 -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/tmp/libwebrtc_install . + - run: + name: Build + command: PATH=/tmp/python_for_libwebrtc_build:$PATH ninja install + - run: + name: Archive + command: cd /tmp/libwebrtc_install && 7z a libwebrtc.7z ./lib ./include + - store_artifacts: + path: /tmp/libwebrtc_install/libwebrtc.7z