Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.yml « .circleci - github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5fd4f00ecaaef6e05cb962cceb99f38f1f24561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 2
jobs:
  build:
    docker:
      - image: buildpack-deps:xenial
    steps:
      - checkout

      - run:
          name: Install prerequisites
          command: |
            set -e
            apt-get update -y
            apt-get update
            apt-get -qq install cmake -y

      - run:
          name: Build FBGEMM static lib
          command: |
            set -e
            mkdir build_static
            cd build_static
            cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=static ../
            make
            make install

      - run:
          name: Test FBGEMM static lib
          command: |
            set -e
            cd build_static
            ctest --verbose

      - run:
          name: Build FBGEMM shared lib
          command: |
            set -e
            mkdir build_shared
            cd build_shared
            cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=shared ../
            make
            make install

      - run:
          name: Test FBGEMM shared lib
          command: |
            set -e
            cd build_shared
            ctest --verbose