-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rdr/add-entry-point-execution
- Loading branch information
Showing
148 changed files
with
43,354 additions
and
2,996 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
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,76 @@ | ||
name: Committer-CLI-push | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- main-v[0-9].** | ||
tags: | ||
- v[0-9].** | ||
paths: | ||
- '.github/workflows/committer_cli_push.yml' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
- 'crates/committer_cli/**' | ||
- 'crates/starknet_api/**' | ||
- 'crates/starknet_committer/**' | ||
- 'crates/starknet_patricia/**' | ||
- 'scripts/dependencies.sh' | ||
|
||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- auto_merge_enabled | ||
- edited | ||
paths: | ||
- '.github/workflows/committer_cli_push.yml' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
- 'crates/committer_cli/**' | ||
- 'crates/starknet_api/**' | ||
- 'crates/starknet_committer/**' | ||
- 'crates/starknet_patricia/**' | ||
- 'scripts/dependencies.sh' | ||
|
||
# On PR events, cancel existing CI runs on this same PR for this workflow. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
gcs-push: | ||
runs-on: starkware-ubuntu-20-04-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/bootstrap | ||
|
||
# Commit hash on pull request event would be the head commit of the branch. | ||
- name: Get commit hash prefix for PR update | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | ||
run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV | ||
|
||
# On push event (to main, for example) we should take the commit post-push. | ||
- name: Get commit hash prefix for merge | ||
if: ${{ github.event_name != 'pull_request' }} | ||
env: | ||
COMMIT_SHA: ${{ github.event.after }} | ||
run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV | ||
|
||
- name: Build CLI binary | ||
run: ./build_native_in_docker.sh cargo build -p committer_cli -r --bin committer_cli --target-dir CLI_TARGET | ||
|
||
- id: auth | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
credentials_json: ${{ secrets.COMMITER_PRODUCTS_EXT_WRITER_JSON }} | ||
|
||
- name: Upload binary to GCP | ||
id: upload_file | ||
uses: "google-github-actions/upload-cloud-storage@v2" | ||
with: | ||
path: "CLI_TARGET/release/committer_cli" | ||
destination: "committer-products-external/${{ env.SHORT_HASH }}/release/" |
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,66 @@ | ||
name: Main-CI-PR-Flow | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- auto_merge_enabled | ||
- edited | ||
|
||
# On PR events, cancel existing CI runs on this same PR for this workflow. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: starkware-ubuntu-latest-small | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install commitlint | ||
run: npm install --global @commitlint/cli @commitlint/config-conventional | ||
|
||
- name: Validate PR commits with commitlint | ||
if: github.event_name == 'pull_request' && !(contains(github.event.pull_request.title, 'merge-main') || contains(github.event.pull_request.title, 'merge main')) | ||
env: | ||
BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
run: commitlint --from "$BASE_SHA" --to "$HEAD_SHA" --verbose | ||
|
||
- name: Validate PR title with commitlint | ||
if: github.event_name != 'merge_group' && github.event_name != 'push' && !(contains(github.event.pull_request.title, 'merge-main') || contains(github.event.pull_request.title, 'merge main')) | ||
env: | ||
TITLE: ${{ github.event.pull_request.title }} | ||
run: echo "$TITLE" | commitlint --verbose | ||
|
||
merge-gatekeeper: | ||
runs-on: starkware-ubuntu-latest-small | ||
# Restrict permissions of the GITHUB_TOKEN. | ||
# Docs: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | ||
permissions: | ||
checks: read | ||
statuses: read | ||
steps: | ||
- name: Run Merge Gatekeeper on pull request | ||
if: github.event_name == 'pull_request' | ||
uses: upsidr/merge-gatekeeper@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
timeout: 1500 | ||
interval: 30 | ||
ignored: "code-review/reviewable" | ||
|
||
- name: Run Merge Gatekeeper on Merge Queue || push | ||
if: github.event_name == 'merge_group' || github.event_name == 'push' | ||
uses: upsidr/merge-gatekeeper@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{github.ref}} | ||
timeout: 1500 | ||
interval: 30 | ||
ignored: "code-review/reviewable" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.