Skip to content

Commit 73f145a

Browse files
committed
add entry point
Signed-off-by: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com>
1 parent 6369348 commit 73f145a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The GitHub Actions automatically fetches the latest versions of the header-only
1515
This package should be part of build dependencies of the Power Grid Model project.
1616
Given its limited applicability, we deliberately do not publish it to PyPI, but instead use a GitHub release artifact to store the wheel file.
1717

18+
### As build dependency for Python
19+
1820
```toml
1921
[build-system]
2022
requires = [
@@ -24,6 +26,21 @@ requires = [
2426

2527
In the build process, the entry point `cmake.root` will be installed into the build environment. The build backend, e.g., [`scikit-build-core`](https://github.com/scikit-build/scikit-build-core), can retrieve the `cmake` search paths and use them when invoking `cmake`.
2628

29+
### Load into CI for C++ build
30+
31+
```yaml
32+
steps:
33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v5
35+
36+
- name: Install pgm-build-dependencies
37+
run: |
38+
uv tool install https://github.com/PowerGridModel/pgm-build-dependencies/releases/latest/download/pgm_build_dependencies-0.1.0-py3-none-any.whl
39+
pgm-build-setup-ga-ci
40+
```
41+
42+
After setting this in your GitHub Actions CI, the follow-up `cmake` calls will find the packages.
43+
2744
## License
2845

2946
The source code of this package is licensed under the [MPL-2.0](https://spdx.org/licenses/MPL-2.0.html) license.

0 commit comments

Comments
 (0)