Skip to content

Commit 3e41ee0

Browse files
committed
Use new CMake-based OSS c++ gtest workflow
For OSS, we should focus on CMake build. Now we can build c++ tests, we should run them with cmake built tests. Enable linux first.
1 parent c69861d commit 3e41ee0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/_unittest.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
jobs:
1616
linux:
1717
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
18-
strategy:
19-
matrix:
20-
include:
21-
- build-tool: buck2
2218
with:
2319
runner: linux.2xlarge
2420
docker-image: ${{ inputs.docker-image }}
@@ -32,16 +28,16 @@ jobs:
3228
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
3329
conda activate "${CONDA_ENV}"
3430
35-
BUILD_TOOL=${{ matrix.build-tool }}
36-
3731
# Setup MacOS dependencies as there is no Docker support on MacOS atm
3832
PYTHON_EXECUTABLE=python \
3933
EXECUTORCH_BUILD_PYBIND=ON \
4034
EXECUTORCH_BUILD_XNNPACK=ON \
41-
.ci/scripts/setup-linux.sh "${BUILD_TOOL}"
35+
.ci/scripts/setup-linux.sh cmake
4236
4337
# Run pytest with coverage
4438
pytest -n auto --cov=./ --cov-report=xml
39+
# Run gtest
40+
sh test/run_oss_cpp_tests.sh
4541
4642
macos:
4743
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
@@ -64,7 +60,7 @@ jobs:
6460
# Setup MacOS dependencies as there is no Docker support on MacOS atm
6561
PYTHON_EXECUTABLE=python \
6662
EXECUTORCH_BUILD_PYBIND=ON \
67-
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
63+
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
6864
${CONDA_RUN} --no-capture-output \
6965
.ci/scripts/setup-macos.sh "${BUILD_TOOL}"
7066

0 commit comments

Comments
 (0)