image: hpvm/gitlab-ci
variables:
  GIT_SUBMODULE_STRATEGY: recursive
  # Use a better compressor
  FF_USE_FASTZIP: "true"
  # output upload and download progress every 2 seconds
  TRANSFER_METER_FREQUENCY: "2s"
  # Use no compression for artifacts
  CACHE_COMPRESSION_LEVEL: "fastest"
cache:
  key: "$CI_COMMIT_REF_SLUG"
  paths:
    - hpvm/build/
    - hpvm/llvm/
    - hpvm/test/dnn_benchmarks/model_params/

build:
  stage: build
  tags:
    - hpvm
  script:
    - pwd
    - source activate hpvm && cd hpvm
    - ./install.sh -j32 -t "X86" DCMAKE_BUILD_TYPE=Release
    - cd ..
  only:
    - hpvm-release-exp
    - merge_requests