Skip to content

Commit

Permalink
Fix abseil gitmodule date and add a step in tests to update the subre…
Browse files Browse the repository at this point in the history
…po to catch errors like this in the future.

PiperOrigin-RevId: 523826559
  • Loading branch information
deannagarcia authored and copybara-github committed Apr 12, 2023
1 parent 777f84f commit 41b7500
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/test_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 41b7500

Please sign in to comment.