forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.02 KB
/
macos.yml
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
name: macOS CI
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize] # Rebuild on new pushes to PR
jobs:
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
BUILD_DEPENDENCY_FROM_SOURCE: [ON] # TODO: re-enable "OFF", probably in Travis
BUILD_TENSORFLOW_OPS: [ON, OFF]
env:
BUILD_DEPENDENCY_FROM_SOURCE: ${{ matrix.BUILD_DEPENDENCY_FROM_SOURCE }}
BUILD_TENSORFLOW_OPS: ${{ matrix.BUILD_TENSORFLOW_OPS }}
SHARED: OFF
NPROC: 2
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: 3.5 # Python 2 is deprecated
- name: Install dependencies
run: |
brew update
brew upgrade python || true
./util/scripts/install-deps-osx.sh
brew cleanup
- name: Config and build
run: |
./util/scripts/run-travis.sh