Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #79 from lidofinance/feat/darwin-upd
Browse files Browse the repository at this point in the history
Feat/darwin upd
  • Loading branch information
F4ever authored Dec 14, 2022
2 parents 551ac92 + 89f3583 commit a5e9bef
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 50 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[comment]: <> (## [Unreleased]&#40;https://github.com/lidofinance/lido-python-sdk&#41; - 2021-09-15)

## [2.7.0](https://github.com/lidofinance/lido-python-sdk/pull/79) - 2022-12-14
### Added
- Support to ARM for MacOS.

## [2.6.0](https://github.com/lidofinance/lido-python-sdk) - 2022-10-27
### Added
- Support to ARM for linux. Move build blst to separate wf.
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ Build blst locally (osx):
cp ./blst/bindings/blst_aux.h ./blst-lib/
python setup.py build_ext --inplace
```
Build blst locally (osx arm):
```bash
cd blst/
./build.sh
cd ..
mkdir -p ./blst-lib/darwin-arm64/
cp ./blst/libblst.a ./blst-lib/darwin-arm64/
cp ./blst/bindings/blst.h ./blst-lib/
cp ./blst/bindings/blst.hpp ./blst-lib/
cp ./blst/bindings/blst_aux.h ./blst-lib/
python setup.py build_ext --inplace
```

## How to test
Simply run in project root directory:
Expand All @@ -231,6 +243,7 @@ git push --tags
New version should be published after all pipelines passed.

## Rebuild blst
Goto actions "Build blst and create PR".
Goto actions "Build blst and create PR".
Note that darwin-arm64 binaries are not rebuilt automatically due to GitHub Actions not supporting macOS runners on arm yet
Review PR and merge.
Do a release.
Binary file added blst-lib/darwin-arm64/libblst.a
Binary file not shown.
Loading

0 comments on commit a5e9bef

Please sign in to comment.