-
Notifications
You must be signed in to change notification settings - Fork 91
Add Script to Update BoringSSL #204
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
db4b701
feat: add script to update boringssl
HamdaanAliQuatil 2fabe63
refactor: unifiy scripts and update workflow
HamdaanAliQuatil 80203b8
chore: remove old py script
HamdaanAliQuatil 826066b
refactor: updated CBB allocation and boringssl verification
HamdaanAliQuatil ccc5b9a
Merge branch 'master' into update-boringssl
HamdaanAliQuatil cb28fd7
refactor: modernize BoringSSL roll tooling for native hooks
HamdaanAliQuatil 12d1ea7
fix: format bindings and include stddef for CBB helper
HamdaanAliQuatil 0bdf2e6
fix: revert obsolete native FFI changes
HamdaanAliQuatil 89730a0
refactor: simplify BoringSSL roll script helpers
HamdaanAliQuatil d3c2986
refactor: use pregenerated BoringSSL sources metadata
HamdaanAliQuatil 0c47867
fix: make BoringSSL roll work with current upstream metadata
HamdaanAliQuatil 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 hidden or 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,96 @@ | ||
| name: update-boringssl | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| revision: | ||
| description: Optional BoringSSL revision SHA. Leave empty for latest. | ||
| required: false | ||
| type: string | ||
| schedule: | ||
| - cron: '0 9 * * 1' | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| concurrency: | ||
| group: update-boringssl | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| roll: | ||
| name: Roll BoringSSL | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: stable | ||
| cache: true | ||
|
|
||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update -y | ||
| sudo apt-get install -y jq ninja-build libgtk-3-dev | ||
| flutter config --no-analytics | ||
|
|
||
| - name: Configure git | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| - name: Run BoringSSL roll script | ||
| id: roll | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| revision='${{ github.event.inputs.revision || '' }}' | ||
| if [[ -n "$revision" ]]; then | ||
| bash ./tool/bump-boringssl-revision.sh "$revision" | ||
| else | ||
| bash ./tool/bump-boringssl-revision.sh | ||
| fi | ||
|
|
||
| new_revision="$(tr -d ' \t\n\r' < tool/REVISION)" | ||
| echo "revision=$new_revision" >> "$GITHUB_OUTPUT" | ||
| echo "short_revision=${new_revision:0:8}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Check for changes | ||
| id: changes | ||
| shell: bash | ||
| run: | | ||
| if git diff --quiet; then | ||
| echo "changed=false" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "changed=true" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Create pull request | ||
| if: steps.changes.outputs.changed == 'true' | ||
| uses: peter-evans/create-pull-request@v7 | ||
| with: | ||
| branch: "update-boringssl-${{ steps.roll.outputs.short_revision }}" | ||
| delete-branch: true | ||
| commit-message: "chore: update BoringSSL to ${{ steps.roll.outputs.short_revision }}" | ||
| title: "chore: update BoringSSL to ${{ steps.roll.outputs.short_revision }}" | ||
| body: | | ||
| Updates vendored BoringSSL to `${{ steps.roll.outputs.revision }}` using `tool/bump-boringssl-revision.sh`. | ||
|
|
||
| This workflow is intentionally thin: it just provisions the environment, runs the script, and opens a PR if the script produced a diff. | ||
| labels: | | ||
| dependencies | ||
| boringssl-update | ||
|
|
||
| - name: Summary | ||
| shell: bash | ||
| run: | | ||
| if [[ '${{ steps.changes.outputs.changed }}' == 'true' ]]; then | ||
| echo "Created or updated a PR for BoringSSL revision ${{ steps.roll.outputs.revision }}" | ||
| else | ||
| echo "No vendored changes were produced for BoringSSL revision ${{ steps.roll.outputs.revision }}" | ||
| fi |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| a873ab7906bc5b1431821864df8036068aab972d |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.