Skip to content

Linux OSS CI use cmake built gtest #3609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/_unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
jobs:
linux:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
strategy:
matrix:
include:
- build-tool: buck2
with:
runner: linux.2xlarge
docker-image: ${{ inputs.docker-image }}
Expand All @@ -32,16 +28,16 @@ jobs:
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
conda activate "${CONDA_ENV}"

BUILD_TOOL=${{ matrix.build-tool }}

# Setup MacOS dependencies as there is no Docker support on MacOS atm
PYTHON_EXECUTABLE=python \
EXECUTORCH_BUILD_PYBIND=ON \
CMAKE_ARGS="-DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
.ci/scripts/setup-linux.sh "${BUILD_TOOL}"
.ci/scripts/setup-linux.sh cmake

# Run pytest with coverage
pytest -n auto --cov=./ --cov-report=xml
# Run gtest
test/run_oss_cpp_tests.sh

macos:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
Expand Down
Empty file modified test/run_oss_cpp_tests.sh
100644 → 100755
Empty file.
Loading