Fix abseil gitmodule date and add a step in tests to update the subrepo to catch errors like this in the future.

PiperOrigin-RevId: 523826559
pull/12436/head
Deanna Garcia 2 years ago committed by Copybara-Service
parent 777f84f559
commit 41b7500aee
  1. 20
      .github/workflows/test_cpp.yml
  2. 13
      .github/workflows/test_php.yml
  3. 2
      .gitmodules

@ -62,8 +62,8 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
submodules: recursive
- name: Cross compile protoc for ${{ matrix.arch }}
id: cross-compile
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v1
@ -118,9 +118,13 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
# Initialize/update the submodule from remote to validate a new fetch based on .gitmodules
# We have to do this separately since actions/checkout doesn't support the "--remote" flag
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Setup ccache
uses: protocolbuffers/protobuf-ci/ccache@v1
with:
@ -140,9 +144,11 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Setup ccache
uses: protocolbuffers/protobuf-ci/ccache@v1
with:
@ -169,9 +175,11 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Setup ccache
uses: protocolbuffers/protobuf-ci/ccache@v1
with:
@ -249,9 +257,11 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Setup ccache
uses: protocolbuffers/protobuf-ci/ccache@v1
with:

@ -40,8 +40,9 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Run tests
uses: protocolbuffers/protobuf-ci/docker@v1
with:
@ -73,9 +74,11 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Cross compile protoc for i386
id: cross-compile
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v1
@ -144,9 +147,13 @@ jobs:
- name: Checkout pending changes
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
ref: ${{ inputs.safe-checkout }}
# Initialize/update the submodule from remote to validate a new fetch based on .gitmodules
# We have to do this separately since actions/checkout doesn't support the "--remote" flag
- name: Update submodules
run: git submodule update --init --remote --recursive
- name: Install dependencies
run: brew install coreutils # For sha256sum

2
.gitmodules vendored

@ -5,7 +5,7 @@
[submodule "third_party/abseil-cpp"]
path = third_party/abseil-cpp
url = https://github.com/abseil/abseil-cpp.git
branch = lts_2023_01_24
branch = lts_2023_01_25
[submodule "third_party/jsoncpp"]
path = third_party/jsoncpp
url = https://github.com/open-source-parsers/jsoncpp.git

Loading…
Cancel
Save