15
15
jobs :
16
16
linux :
17
17
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
18
- strategy :
19
- matrix :
20
- include :
21
- - build-tool : buck2
22
18
with :
23
19
runner : linux.2xlarge
24
20
docker-image : ${{ inputs.docker-image }}
@@ -32,23 +28,19 @@ jobs:
32
28
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
33
29
conda activate "${CONDA_ENV}"
34
30
35
- BUILD_TOOL=${{ matrix.build-tool }}
36
-
37
31
# Setup MacOS dependencies as there is no Docker support on MacOS atm
38
32
PYTHON_EXECUTABLE=python \
39
33
EXECUTORCH_BUILD_PYBIND=ON \
40
34
EXECUTORCH_BUILD_XNNPACK=ON \
41
- .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
35
+ .ci/scripts/setup-linux.sh cmake
42
36
43
37
# Run pytest with coverage
44
38
pytest -n auto --cov=./ --cov-report=xml
39
+ # Run gtest
40
+ sh test/run_oss_cpp_tests.sh
45
41
46
42
macos :
47
43
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
48
- strategy :
49
- matrix :
50
- include :
51
- - build-tool : buck2
52
44
with :
53
45
runner : macos-m1-stable
54
46
python-version : ' 3.11'
@@ -57,18 +49,17 @@ jobs:
57
49
script : |
58
50
set -eux
59
51
60
- BUILD_TOOL=${{ matrix.build-tool }}
61
-
62
52
bash .ci/scripts/setup-conda.sh
63
53
64
54
# Setup MacOS dependencies as there is no Docker support on MacOS atm
65
55
PYTHON_EXECUTABLE=python \
66
56
EXECUTORCH_BUILD_PYBIND=ON \
67
57
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
68
58
${CONDA_RUN} --no-capture-output \
69
- .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
59
+ # TODO: Migrate to cmake
60
+ .ci/scripts/setup-macos.sh buck2
70
61
71
62
# Run pytest with coverage
72
63
${CONDA_RUN} pytest -n auto --cov=./ --cov-report=xml
73
- # Run gtest
64
+ # Run gtest. TODO: Migrate to cmake
74
65
${CONDA_RUN} buck2 test runtime/core/... runtime/platform/...
0 commit comments