version: 2

jobs:
  build_x86_64:
    docker:
      - image: node
    steps:
      - checkout
      - run: apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates pkg-config autoconf automake libtool git cmake make g++  libjsoncpp-dev libjpeg-dev libssl-dev npm
      - run: cmake . && make && cpack DESTDIR=/tmp/artifact
      - store_artifacts:
          path: /tmp/artifact 

workflows:
  version: 2
  build:
    jobs:
      - build_x86_64
