Skip to content

Commit

Permalink
remove workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Mar 25, 2024
1 parent c338508 commit 44bb130
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 25 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/buildAndTestCMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ jobs:
- name: Build and Test StableHLO (with AddressSanitizer)
shell: bash
run: |
cmake --build --preset debug --target check-stablehlo-ci
cmake --preset debug
cmake --build ./build --target check-stablehlo-ci
- name: Build and Test StableHLO (with Python bindings)
shell: bash
run: |
cmake --build --preset debug-python --target check-stablehlo-ci
cmake --preset debug-python
cmake --build ./build --target check-stablehlo-ci
17 changes: 3 additions & 14 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"CMAKE_PLATFORM_NO_VERSIONED_SONAME": "ON",
"LLVM_VERSION_SUFFIX": "",
"LLVM_USE_SPLIT_DWARF": "ON",
"STABLEHLO_ENABLE_SPLIT_DWARF": "ON"
"STABLEHLO_ENABLE_SPLIT_DWARF": "ON",
"STABLEHLO_ENABLE_SANITIZER": "address"
}
},
{
Expand All @@ -32,17 +33,5 @@
"STABLEHLO_ENABLE_SANITIZER": "OFF"
}
}
],
"buildPresets": [
{
"name": "debug",
"displayName": "Build Debug",
"configurePreset": "debug"
},
{
"name": "debug-python",
"displayName": "Build Debug w/ python bindings",
"configurePreset": "debug-python"
}
]
]
}
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,13 @@ Here's how to build the StableHLO repo on Linux or macOS:

You need to do this every time `llvm_version.txt` changes.

4. Build StableHLO as a standalone library:
4. Build StableHLO as a standalone library and run all the tests:

```sh
cmake --build --preset debug
```

5. Now you can make sure it works by running some tests:

```sh
cmake --build --preset debug --target check-stablehlo-tests
# first configure the build system
cmake --preset debug
# then build the project
cmake --build ./build --target check-stablehlo-ci
```

You should see results like this:
Expand All @@ -79,7 +76,8 @@ Here's how to build the StableHLO repo on Linux or macOS:
Passed: 137 (100.00%)
```

This runs all the tests in `stablehlo/tests/`.
This runs all the tests in `stablehlo/tests/`. You can change the target
to build or test specific parts of the project.

## Python

Expand Down

0 comments on commit 44bb130

Please sign in to comment.