File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 31
31
bash .ci/scripts/test.sh
32
32
33
33
# Test custom ops
34
- bash examples/custom_ops/test_custom_ops.sh
34
+ bash examples/custom_ops/test_custom_ops.sh buck2
35
35
36
36
buck-build-test-macos :
37
37
name : buck-build-test-macos
49
49
50
50
# Build and test Executorch
51
51
bash .ci/scripts/test.sh
52
+
53
+ # Test custom ops
54
+ bash examples/custom_ops/test_custom_ops.sh buck2
52
55
popd
53
56
54
57
cmake-build-test-linux :
68
71
69
72
# Build and test Executorch
70
73
bash .ci/scripts/test-cmake.sh
74
+
75
+ # Build and test custom ops
76
+ bash examples/custom_ops/test_custom_ops.sh cmake
77
+
78
+ cmake-build-test-macos :
79
+ name : cmake-build-test-macos
80
+ uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
81
+ with :
82
+ runner : macos-m1-12
83
+ submodules : ' true'
84
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
85
+ script : |
86
+ WORKSPACE=$(pwd)
87
+
88
+ pushd "${WORKSPACE}/pytorch/executorch"
89
+ # Setup MacOS dependencies as there is no Docker support on MacOS atm
90
+ bash .ci/scripts/setup-macos.sh
91
+
92
+ # Build and test custom ops
93
+ bash examples/custom_ops/test_custom_ops.sh cmake
94
+ popd
Original file line number Diff line number Diff line change @@ -99,7 +99,17 @@ test_cmake_custom_op_2() {
99
99
cmake-out/executor_runner " --model_path=./${model_name} .pte"
100
100
}
101
101
102
- test_buck2_custom_op_1
103
- test_cmake_custom_op_1
104
- test_buck2_custom_op_2
105
- test_cmake_custom_op_2
102
+ if [[ $1 == " cmake" ]];
103
+ then
104
+ test_cmake_custom_op_1
105
+ test_cmake_custom_op_2
106
+ elif [[ $1 == " buck2" ]];
107
+ then
108
+ test_buck2_custom_op_1
109
+ test_buck2_custom_op_2
110
+ else
111
+ test_cmake_custom_op_1
112
+ test_cmake_custom_op_2
113
+ test_buck2_custom_op_1
114
+ test_buck2_custom_op_2
115
+ fi
You can’t perform that action at this time.
0 commit comments