Skip to content

Commit 44bb130

Browse files
author
Farid Zakaria
committed
remove workflow
1 parent c338508 commit 44bb130

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

.github/workflows/buildAndTestCMake.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ jobs:
7171
- name: Build and Test StableHLO (with AddressSanitizer)
7272
shell: bash
7373
run: |
74-
cmake --build --preset debug --target check-stablehlo-ci
74+
cmake --preset debug
75+
cmake --build ./build --target check-stablehlo-ci
7576
7677
- name: Build and Test StableHLO (with Python bindings)
7778
shell: bash
7879
run: |
79-
cmake --build --preset debug-python --target check-stablehlo-ci
80+
cmake --preset debug-python
81+
cmake --build ./build --target check-stablehlo-ci

CMakePresets.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"CMAKE_PLATFORM_NO_VERSIONED_SONAME": "ON",
2020
"LLVM_VERSION_SUFFIX": "",
2121
"LLVM_USE_SPLIT_DWARF": "ON",
22-
"STABLEHLO_ENABLE_SPLIT_DWARF": "ON"
22+
"STABLEHLO_ENABLE_SPLIT_DWARF": "ON",
23+
"STABLEHLO_ENABLE_SANITIZER": "address"
2324
}
2425
},
2526
{
@@ -32,17 +33,5 @@
3233
"STABLEHLO_ENABLE_SANITIZER": "OFF"
3334
}
3435
}
35-
],
36-
"buildPresets": [
37-
{
38-
"name": "debug",
39-
"displayName": "Build Debug",
40-
"configurePreset": "debug"
41-
},
42-
{
43-
"name": "debug-python",
44-
"displayName": "Build Debug w/ python bindings",
45-
"configurePreset": "debug-python"
46-
}
47-
]
36+
]
4837
}

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,13 @@ Here's how to build the StableHLO repo on Linux or macOS:
5858

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

61-
4. Build StableHLO as a standalone library:
61+
4. Build StableHLO as a standalone library and run all the tests:
6262

6363
```sh
64-
cmake --build --preset debug
65-
```
66-
67-
5. Now you can make sure it works by running some tests:
68-
69-
```sh
70-
cmake --build --preset debug --target check-stablehlo-tests
64+
# first configure the build system
65+
cmake --preset debug
66+
# then build the project
67+
cmake --build ./build --target check-stablehlo-ci
7168
```
7269

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

82-
This runs all the tests in `stablehlo/tests/`.
79+
This runs all the tests in `stablehlo/tests/`. You can change the target
80+
to build or test specific parts of the project.
8381

8482
## Python
8583

0 commit comments

Comments
 (0)