config.yml 1.92 KB
Newer Older
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
version: 2.1

# How to test:
#   - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/
#   - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_wheel
#     - Replace binary_linux_wheel with the name of the job you want to test

param_target_commit: &param_target_commit
  target_commit:
    description: "what hash or branch to build binaries for; by default, same as trigger"
    type: string
    default: HEAD

jobs:
  binary_linux_wheel:
    parameters:
      <<: *param_target_commit
    docker:
      - image: "soumith/manylinux-cuda100"
    resource_class: 2xlarge+
    steps:
      - checkout
      - run: TARGET_COMMIT=<< parameters.target_commit >> build_tools/packaging/wheel/linux_manywheel.sh
      - store_artifacts:
          path: /remote/cpu

  binary_linux_conda:
    parameters:
      <<: *param_target_commit
    docker:
      - image: "soumith/conda-cuda"
    resource_class: 2xlarge+
    steps:
      - checkout
      - run: TARGET_COMMIT=<< parameters.target_commit >> build_tools/packaging/conda/build_audio.sh
      - store_artifacts:
          path: /opt/conda/conda-bld/linux-64

Edward Z. Yang's avatar
Edward Z. Yang committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  binary_macos_wheel:
    parameters:
      <<: *param_target_commit
    macos:
      xcode: "9.0"
    resource_class: 2xlarge+
    steps:
      - checkout
      - run: TARGET_COMMIT=<< parameters.target_commit >> build_tools/packaging/wheel/osx_wheel.sh
      - store_artifacts:
          path: $HOME/torchaudio_wheels

  binary_macos_conda:
    parameters:
      <<: *param_target_commit
    macos:
      xcode: "9.0"
    resource_class: 2xlarge+
    steps:
      - checkout
      # TODO: This needs a conda install...
      - run: TARGET_COMMIT=<< parameters.target_commit >> build_tools/packaging/conda/build_audio.sh
      - store_artifacts:
          path: $HOME/miniconda3/conda-bld/osx-64

64
65
66
67
68
workflows:
  build:
    jobs:
      - binary_linux_wheel
      - binary_linux_conda