Squashed 'libs/protobuf/' content from commit fcd3b9a85
git-subtree-dir: libs/protobuf git-subtree-split: fcd3b9a85ef36e46643dc30176cea1a7ad62e02b
This commit is contained in:
16
.github/workflows/codespell.yml
vendored
Normal file
16
.github/workflows/codespell.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# GitHub Action to automate the identification of common misspellings in text files.
|
||||
# https://github.com/codespell-project/actions-codespell
|
||||
# https://github.com/codespell-project/codespell
|
||||
name: codespell
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
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"
|
||||
29
.github/workflows/generated_cmake.yml
vendored
Normal file
29
.github/workflows/generated_cmake.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
36
.github/workflows/objc_cocoapods.yml
vendored
Normal file
36
.github/workflows/objc_cocoapods.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: 'ObjC CocoaPods'
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/objc_cocoapods.yml'
|
||||
- 'Protobuf.podspec'
|
||||
- 'objectivec/**'
|
||||
- '!objectivec/DevTools/**'
|
||||
- '!objectivec/ProtocolBuffers_*.xcodeproj/**'
|
||||
- '!objectivec/Tests/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/objc_cocoapods.yml'
|
||||
- 'Protobuf.podspec'
|
||||
- 'objectivec/**'
|
||||
- '!objectivec/DevTools/**'
|
||||
- '!objectivec/ProtocolBuffers_*.xcodeproj/**'
|
||||
- '!objectivec/Tests/**'
|
||||
|
||||
jobs:
|
||||
pod-lib-lint:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
PLATFORM: ["ios", "macos", "tvos", "watchos"]
|
||||
CONFIGURATION: ["Debug", "Release"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Pod lib lint
|
||||
run: |
|
||||
pod lib lint --verbose \
|
||||
--configuration=${{ matrix.CONFIGURATION }} \
|
||||
--platforms=${{ matrix.PLATFORM }} \
|
||||
Protobuf.podspec
|
||||
43
.github/workflows/php-ext.yml
vendored
Normal file
43
.github/workflows/php-ext.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: PHP extension
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build-php:
|
||||
name: Build PHP extension
|
||||
runs-on: ubuntu-latest
|
||||
container: ${{ matrix.php-image }}
|
||||
strategy:
|
||||
matrix:
|
||||
php-image:
|
||||
- php:7.4-cli
|
||||
- php:8.1-cli
|
||||
steps:
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update -q
|
||||
apt-get install -qy --no-install-recommends git
|
||||
- name: Checkout
|
||||
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"
|
||||
- name: Compile extension
|
||||
run: |
|
||||
cd /tmp
|
||||
MAKE="make -j$(nproc)" pecl install protobuf-*.tgz
|
||||
- name: Enable extension
|
||||
run: docker-php-ext-enable protobuf
|
||||
- name: Inspect extension
|
||||
run: php --ri protobuf
|
||||
Reference in New Issue
Block a user