-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade native sdk 4.2.6.240 (#1834)
Update native sdk 4.2.6.240 dependencies > This pull request is trigger by bot, you can checkout this branch and update it. --------- Co-authored-by: littleGnAl <littleGnAl@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7971237
commit 9a870b0
Showing
52 changed files
with
1,957 additions
and
1,262 deletions.
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,71 @@ | ||
name: Code gen | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
target_branch: | ||
description: The branch to run code-gen | ||
type: string | ||
required: true | ||
default: 'main' | ||
|
||
version: | ||
description: 'The version of native sdk in terra-script' | ||
required: false | ||
type: string | ||
default: '' | ||
|
||
jobs: | ||
run_code_gen: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.target_branch }} | ||
fetch-depth: 0 | ||
- name: enable corepack | ||
run: corepack enable | ||
- name: set node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Reconfigure git to use HTTP authentication | ||
run: | | ||
git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://git@github.com/ | ||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "15.0.6" # Need ping version to 15.x | ||
directory: ${{ runner.temp }}/llvm | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Run code-gen | ||
run: | | ||
bash scripts/code_gen.sh ${{ inputs.version }} | ||
- name: Get current date | ||
id: date | ||
run: echo "date=$(date +'%Y%m%d')" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Auto generate codes for native sdk version ${{ inputs.version }}" | ||
committer: GitHub <noreply@github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: auto-code-gen-${{ steps.date.outputs.date }} | ||
base: ${{ inputs.target_branch }} | ||
delete-branch: true | ||
title: "Auto generate codes for native sdk ${{ inputs.version }}" | ||
body: | | ||
Auto generate codes for native sdk version ${{ inputs.version }} | ||
*This pull request is opened by bot* | ||
labels: | | ||
ci:skip | ||
reviewers: | | ||
littleGnAl |
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
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
Oops, something went wrong.