-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,13 +130,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get polyfills repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'uber/h3' | ||
path: 'h3' | ||
ref: stable-3.x | ||
|
||
# because of https://github.com/orgs/Homebrew/discussions/4612 | ||
- name: Check Environment | ||
run: | | ||
|
@@ -151,9 +144,6 @@ jobs: | |
brew link --overwrite --force shivammathur/php/[email protected] | ||
/usr/local/Frameworks/Python.framework/Versions/3.11/bin/pip3 install jsonschema | ||
- name: Build Uber h3 | ||
run: cmake -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_CXX_STANDARD=${{matrix.cpp}} -S $GITHUB_WORKSPACE/h3 -B ${{runner.workspace}}/h3/build && make install -C ${{runner.workspace}}/h3/build -j$(nproc) all | ||
|
||
- name: Run cmake | ||
run: cmake -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_CXX_STANDARD=${{matrix.cpp}} -DDOWNLOAD_MISSING_LIBRARIES=On -S $GITHUB_WORKSPACE -B ${{runner.workspace}}/build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,32 +79,21 @@ apt install git cmake make g++ gperf python3-minimal python3-jsonschema \ | |
``` | ||
|
||
|
||
##### MacOS with Intel chipset | ||
##### MacOS | ||
Make sure you have `brew` and `clang` (at least `Apple clang version 10.0.0`) | ||
```bash | ||
# Install dependencies | ||
brew tap shivammathur/php | ||
brew update | ||
brew install re2c cmake coreutils openssl libiconv re2 pcre yaml-cpp zstd googletest shivammathur/php/[email protected] | ||
brew link --overwrite shivammathur/php/[email protected] | ||
pip3 install jsonschema | ||
``` | ||
Clone somewhere local [epoll-shim from GitHub]({{site.url_package_epoll_shim}}) and switch to *osx-platform* branch. | ||
Add env variable `EPOLL_SHIM_REPO` to your bash profile. It allows to avoid of cloning `epoll-shim` on each clean cmake call. | ||
```bash | ||
git clone https://github.com/VKCOM/epoll-shim.git | ||
cd epoll-shim | ||
git checkout osx-platform | ||
echo 'export "EPOLL_SHIM_REPO=$(pwd)" >> ~/.bash_profile' | ||
``` | ||
|
||
Clone somewhere local [h3 from GitHub]({{site.url_package_h3_mac}}) and switch to *stable-3.x* branch. | ||
```bash | ||
git clone https://github.com/uber/h3.git | ||
git checkout stable-3.x | ||
mkdir build | ||
cd build | ||
cmake .. | ||
sudo make install | ||
# Build kphp | ||
git clone https://github.com/VKCOM/kphp.git && cd kphp | ||
mkdir build && cd build | ||
cmake .. -DDOWNLOAD_MISSING_LIBRARIES=On | ||
make -j$(nproc) | ||
``` | ||
|
||
##### Other Linux | ||
|