-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: 何延龙 <hey.yanlong@gmail.com> Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
- Loading branch information
1 parent
4231063
commit 59e6a4a
Showing
12 changed files
with
877 additions
and
83 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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: PECL | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: "1" | ||
RUSTFLAGS: "-D warnings" | ||
LLVM_CONFIG_PATH: llvm-config-10 | ||
RUSTUP_HOME: /opt/rustup | ||
CARGO_HOME: /opt/cargo | ||
|
||
jobs: | ||
pecl: | ||
name: PECL | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
version: | ||
- php: "8.1" | ||
swoole: "5.0.0" | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install libclang | ||
run: sudo apt-get install -y llvm-10-dev libclang-10-dev protobuf-compiler | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version.php }} | ||
tools: php-config | ||
extensions: swoole-${{ matrix.version.swoole }} | ||
|
||
- name: Install Rust Stable Globally | ||
run: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path | ||
ln -s $CARGO_HOME/bin/rustup /usr/local/bin/rustup | ||
ln -s $CARGO_HOME/bin/rustc /usr/local/bin/rustc | ||
ln -s $CARGO_HOME/bin/cargo /usr/local/bin/cargo | ||
- name: PECL install | ||
run: | | ||
sudo rustup default stable | ||
sudo cargo run -p scripts --release -- create-package-xml --version 0.0.0 --notes "Just for TEST." | ||
printf "\n" | sudo pecl install package.xml | ||
php -d "extension=skywalking_agent" --ri skywalking_agent |
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.