-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade abseil to 20230802.1 #95
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7bb2b06
Add workflow to upgrade vendored dependencies
mudge f3180e2
Upgrade Abseil to 20230802.1
mudge a227b5f
Update abseil library list for Windows
stanhu 6de8bca
Compile against C++14, not C++17
mudge 5f742e5
Work around x64-mingw-ucrt build failures in abseil-cpp
stanhu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,26 @@ | ||
name: Upgrade vendored dependencies | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '15 3 1 * *' | ||
|
||
jobs: | ||
upgrade: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
- name: Upgrade all vendored dependencies to their latest versions | ||
run: ./scripts/update-dependencies | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
branch: 'upgrade-vendored-dependencies' | ||
title: 'Upgrade vendored dependencies' | ||
commit-message: 'Upgrade vendored dependencies to latest versions' | ||
labels: dependencies | ||
body: | | ||
- Upgrade RE2 | ||
- Upgrade Abseil |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
--- | ||
libre2: | ||
version: "2023-09-01" | ||
sha256: "5bb6875ae1cd1e9fedde98018c346db7260655f86fdb8837e3075103acd3649b" | ||
# sha-256 hash provided in https://github.com/google/re2/releases/download/2023-09-01/re2-2023-09-01.tar.gz | ||
|
||
version: '2023-09-01' | ||
sha256: 5bb6875ae1cd1e9fedde98018c346db7260655f86fdb8837e3075103acd3649b | ||
abseil: | ||
version: "20230125.3" | ||
sha256: 5366d7e7fa7ba0d915014d387b66d0d002c03236448e1ba9ef98122c13b35c36 | ||
# sha-256 hash provided in https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz | ||
version: "20230802.1" | ||
sha256: "987ce98f02eefbaf930d6e38ab16aa05737234d7afbab2d5c4ea7adbe50c28ed" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "net/http" | ||
require "digest/sha2" | ||
require "yaml" | ||
|
||
re2_response = Net::HTTP.get_response(URI("https://github.com/google/re2/releases/latest")) | ||
exit 1 unless re2_response.is_a?(Net::HTTPRedirection) | ||
|
||
re2_release = File.basename(URI(re2_response["Location"]).path) | ||
re2_redirect = Net::HTTP.get_response(URI("https://github.com/google/re2/releases/download/#{re2_release}/re2-#{re2_release}.tar.gz")) | ||
exit 1 unless re2_redirect.is_a?(Net::HTTPRedirection) | ||
|
||
re2_archive = Net::HTTP.get_response(URI(re2_redirect["Location"])) | ||
exit 1 unless re2_archive.is_a?(Net::HTTPSuccess) | ||
re2_sha256sum = Digest::SHA2.hexdigest(re2_archive.body) | ||
|
||
abseil_response = Net::HTTP.get_response(URI("https://github.com/abseil/abseil-cpp/releases/latest")) | ||
exit 1 unless abseil_response.is_a?(Net::HTTPRedirection) | ||
|
||
abseil_tag = File.basename(URI(abseil_response["Location"]).path) | ||
abseil_redirect = Net::HTTP.get_response(URI("https://github.com/abseil/abseil-cpp/archive/refs/tags/#{abseil_tag}.tar.gz")) | ||
exit 1 unless abseil_redirect.is_a?(Net::HTTPRedirection) | ||
|
||
abseil_archive = Net::HTTP.get_response(URI(abseil_redirect["Location"])) | ||
exit 1 unless abseil_archive.is_a?(Net::HTTPSuccess) | ||
abseil_sha256sum = Digest::SHA2.hexdigest(abseil_archive.body) | ||
|
||
File.write( | ||
File.expand_path("../dependencies.yml", __dir__), | ||
{ | ||
"libre2" => { "version" => re2_release, "sha256" => re2_sha256sum }, | ||
"abseil" => { "version" => abseil_tag, "sha256" => abseil_sha256sum } | ||
}.to_yaml | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping we could drop this workaround in #96, but the runners are still using
pkgconf
1.9.3. 2.0.0 will fix this: pkgconf/pkgconf#268