Skip to content

Commit

Permalink
Remove cmake build (#2764)
Browse files Browse the repository at this point in the history
Other projects can now consume ebpf-for-windows in binary form,
using either nuget or MSI install.  We no longer need to build
ebpf-for-windows both ways, so removing the cmake build to free
up build resources and reduce the development cost of maintaining
both msbuild and cmake builds.

Fixes #2743

Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler authored Aug 18, 2023
1 parent 4e6bed3 commit b7f82b6
Show file tree
Hide file tree
Showing 53 changed files with 0 additions and 2,498 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ jobs:
build_nuget: true
configurations: '["NativeOnlyDebug", "NativeOnlyRelease"]'

cmake:
# Always run this job.
if: github.event_name == 'schedule' || github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'merge_group'
uses: ./.github/workflows/reusable-cmake-build.yml
with:
build_artifact: Build-x64-cmake

# Run the unit tests in GitHub.
unit_tests:
# Always run this job.
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/reusable-cmake-build.yml

This file was deleted.

62 changes: 0 additions & 62 deletions CMakeLists.txt

This file was deleted.

43 changes: 0 additions & 43 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,49 +173,6 @@ and a few binaries just used for demo'ing eBPF functionality, as in the demo wal
- `port_leak.exe`: A "buggy" utility to illustrate the effect of an app that leaks ports.
- `port_quota.exe`: A sample utility to illustrate using eBPF to manage port quotas to defend against `port_leak.exe` and similar "buggy" apps.

### How to clone and build the project using CMake

#### Cloning the project

```bash
git clone --recurse-submodules https://github.com/microsoft/ebpf-for-windows.git
```

#### Configuring the project

```bash
cmake -S ebpf-for-windows -B build
```

#### Building the project

Configuration: It is advised to use the Debug configuration for now.

```bash
cmake --build build --config <Configuration>
```

#### Running the tests

Configure with the `EBPFFORWINDOWS_ENABLE_TESTS` option (enabled by default)

```bash
cmake -S ebpf-for-windows -B build -DEBPFFORWINDOWS_ENABLE_TESTS=true
```

Then build the tests

```bash
cmake -S ebpf-for-windows -B build
```

Finally, invoke CTest:

```bash
cd build
ctest -V -C Debug
```

## Installing eBPF for Windows

Windows requires that one of the following criteria be met prior to loading a driver:
Expand Down
67 changes: 0 additions & 67 deletions ebpfapi/CMakeLists.txt

This file was deleted.

61 changes: 0 additions & 61 deletions ebpfcore/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit b7f82b6

Please sign in to comment.