ADD: added new version of protobuf
This commit is contained in:
@@ -13,4 +13,4 @@ jobs:
|
||||
with:
|
||||
check_filenames: true
|
||||
skip: ./.git,./conformance/third_party,*.snk,*.pb,*.pb.cc,*.pb.h,./src/google/protobuf/testdata,./objectivec/Tests,./python/compatibility_tests/v2.5.0/tests/google/protobuf/internal,./.github/workflows/codespell.yml
|
||||
ignore_words_list: "alow,alse,ba,chec,cleare,copyable,cloneable,dedup,dur,errorprone,falsy,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',ro,te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,streem,sur,falsy"
|
||||
ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,falsy,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',ro,te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,streem,sur"
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
name: Generate CMake File Lists
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- '[0-9]+.x'
|
||||
# The 21.x branch predates support for auto-generation of the CMake file
|
||||
# lists, so we make sure to exclude it.
|
||||
- '!21.x'
|
||||
|
||||
jobs:
|
||||
cmake:
|
||||
if: github.repository == 'protocolbuffers/protobuf'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false # Don't cancel all jobs if one fails.
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Note: this token has an expiration date, so if the workflow starts
|
||||
# failing then you may need to generate a fresh token.
|
||||
token: ${{ secrets.BOT_ACCESS_TOKEN }}
|
||||
- name: Configure name and email address in Git
|
||||
run: cd ${{ github.workspace }} && git config user.name "Protobuf Team Bot" && git config user.email "protobuf-team-bot@google.com"
|
||||
- name: Commit and push update
|
||||
run: cd ${{ github.workspace }} && ./cmake/push_auto_update.sh
|
||||
@@ -24,7 +24,8 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
PLATFORM: ["ios", "macos", "tvos", "watchos"]
|
||||
# Add back 'watchos'. See CocoaPods/CocoaPods#11558
|
||||
PLATFORM: ["ios", "macos", "tvos"]
|
||||
CONFIGURATION: ["Debug", "Release"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
23
libs/protobuf/.github/workflows/php-ext.yml
vendored
23
libs/protobuf/.github/workflows/php-ext.yml
vendored
@@ -15,6 +15,16 @@ jobs:
|
||||
- php:7.4-cli
|
||||
- php:8.1-cli
|
||||
steps:
|
||||
- name: Install python3
|
||||
run: |
|
||||
apt-get update -q
|
||||
apt-get install -qy python3
|
||||
- name: Install bazel
|
||||
run: |
|
||||
apt-get install -qy wget
|
||||
mkdir $HOME/bin
|
||||
wget -O $HOME/bin/bazel https://github.com/bazelbuild/bazel/releases/download/5.3.2/bazel-5.3.2-linux-x86_64
|
||||
chmod a+x $HOME/bin/bazel
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update -q
|
||||
@@ -23,20 +33,15 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Prepare source code
|
||||
run: |
|
||||
rm -rf "$GITHUB_WORKSPACE/php/ext/google/protobuf/third_party"
|
||||
cp -r "$GITHUB_WORKSPACE/third_party" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
|
||||
cp "$GITHUB_WORKSPACE/LICENSE" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
|
||||
- name: Create package
|
||||
run: |
|
||||
cd /tmp
|
||||
rm -rf protobuf-*.tgz
|
||||
pecl package "$GITHUB_WORKSPACE/php/ext/google/protobuf/package.xml"
|
||||
cd $GITHUB_WORKSPACE
|
||||
rm -rf bazel-bin/php/protobuf-*.tgz
|
||||
$HOME/bin/bazel build php:release
|
||||
- name: Compile extension
|
||||
run: |
|
||||
cd /tmp
|
||||
MAKE="make -j$(nproc)" pecl install protobuf-*.tgz
|
||||
MAKE="make -j$(nproc)" pecl install $GITHUB_WORKSPACE/bazel-bin/php/protobuf-*.tgz
|
||||
- name: Enable extension
|
||||
run: docker-php-ext-enable protobuf
|
||||
- name: Inspect extension
|
||||
|
||||
Reference in New Issue
Block a user