-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into andreylzmw-gh-install
- Loading branch information
Showing
115 changed files
with
3,195 additions
and
1,126 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 |
---|---|---|
|
@@ -128,7 +128,7 @@ jobs: | |
|
||
- name: Run php dummy script | ||
run: docker exec kphp-build-container-${{matrix.os}} bash -c | ||
'cd ${{env.kphp_build_dir}} && su kitten -c "kphp --version && ./kphp_out/cli -o --user kitten' | ||
"сd ${{env.kphp_build_dir}} && echo 'hello world' > test.php && kphp --mode=cli test.php && ./kphp_out/cli" | ||
|
||
- name: Remove docker container | ||
run: docker rm -f kphp-build-container-${{matrix.os}} | ||
|
@@ -197,6 +197,26 @@ jobs: | |
|
||
# - name: Build all | ||
# run: make -C ${{runner.workspace}}/build -j$(nproc) all | ||
|
||
# # because of https://github.com/orgs/Homebrew/discussions/4612 | ||
# - name: Check Environment | ||
# run: | | ||
# export HOMEBREW_NO_INSTALL_FROM_API=0 | ||
# brew untap --force homebrew/cask | ||
|
||
# - name: Setup Environment | ||
# run: | | ||
# brew tap shivammathur/php | ||
# brew update | ||
# brew install re2c cmake coreutils openssl libiconv re2 pcre yaml-cpp zstd googletest shivammathur/php/[email protected] [email protected] | ||
# brew link --overwrite --force shivammathur/php/[email protected] | ||
# /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m pip install --upgrade pip --break-system-packages && /usr/local/Frameworks/Python.framework/Versions/3.12/bin/pip3 install jsonschema install --break-system-packages jsonschema | ||
|
||
# - 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 | ||
|
||
# - name: Build all | ||
# run: make -C ${{runner.workspace}}/build -j$(nproc) all | ||
|
||
# - name: Run unit tests | ||
# run: make -C ${{runner.workspace}}/build -j$(nproc) test | ||
|
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 |
---|---|---|
|
@@ -22,25 +22,21 @@ 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: | | ||
export HOMEBREW_NO_INSTALL_FROM_API=0 | ||
brew untap --force homebrew/cask | ||
- name: Setup Environment | ||
run: | | ||
brew tap shivammathur/php | ||
brew update | ||
brew install re2c cmake coreutils openssl libiconv re2 pcre yaml-cpp zstd googletest shivammathur/php/[email protected] | ||
brew install re2c cmake coreutils openssl libiconv re2 pcre yaml-cpp zstd googletest shivammathur/php/[email protected] [email protected] | ||
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 | ||
|
||
/usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m pip install --upgrade pip --break-system-packages && /usr/local/Frameworks/Python.framework/Versions/3.12/bin/pip3 install jsonschema install --break-system-packages jsonschema | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
// Functions declared in this file are actually toggles to enable or disable some functionality in KPHP runtime. | ||
|
||
function set_migration_php8_warning ($mask ::: int) ::: void; | ||
|
||
function set_detect_incorrect_encoding_names_warning(bool $show) ::: void; | ||
|
||
function set_json_log_on_timeout_mode(bool $enabled) ::: void; | ||
|
||
function set_json_log_demangle_stacktrace(bool $enable) ::: void; | ||
|
||
function set_use_updated_gmmktime(bool $enable) ::: void; | ||
|
||
function kphp_turn_on_host_tag_in_inner_statshouse_metrics_toggle(); | ||
|
||
function kphp_extended_instance_cache_metrics_init(callable(string $key):string $normalization_function) ::: void; |
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
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
Oops, something went wrong.