forked from kkrt-labs/kakarot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
387 changed files
with
49,474 additions
and
914 deletions.
There are no files selected for viewing
This file was deleted.
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
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/release.yml → .github/workflows/cairo-zero-release.yml
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,5 +1,5 @@ | ||
# trunk-ignore-all(checkov/CKV2_GHA_1) | ||
name: Release | ||
name: cairo-zero-Release | ||
|
||
on: | ||
release: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/update-rpc.yml → .github/workflows/cairo-zero-update-rpc.yml
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,4 +1,4 @@ | ||
name: Update Submodule | ||
name: cairo-zero Update Submodule | ||
|
||
on: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Reusable Build Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact-name: | ||
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
ssj-build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_COMMIT_MESSAGE: CI Formatting Auto Commit | ||
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} CI | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Scarb | ||
uses: software-mansion/setup-scarb@v1 | ||
with: | ||
tool-versions: ./cairo/kakarot-ssj/.tool-versions | ||
|
||
- name: Build contracts | ||
run: cd cairo/kakarot-ssj/ && scarb build -p contracts | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
path: cairo/kakarot-ssj/target/dev |
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,83 @@ | ||
name: SSJ-CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
concurrency: | ||
group: ssj-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
paths-filter: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
crates: ${{ steps.filter.outputs.crates }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
crates: | ||
- 'cairo/kakarot-ssj/crates/**' | ||
ssj-build: | ||
needs: paths-filter | ||
if: needs.paths-filter.outputs.crates == 'true' | ||
uses: ./.github/workflows/ssj-build.yml | ||
with: | ||
artifact-name: ssj-build | ||
|
||
ssj-tests-unit: | ||
needs: paths-filter | ||
if: needs.paths-filter.outputs.crates == 'true' | ||
uses: ./.github/workflows/ssj-tests-unit.yml | ||
with: | ||
run-fmt-check: false | ||
|
||
ssj-ef-tests: | ||
uses: ./.github/workflows/ssj-ef-tests.yml | ||
needs: | ||
- ssj-build | ||
- paths-filter | ||
if: needs.paths-filter.outputs.crates == 'true' | ||
with: | ||
artifact-name: ssj-build | ||
|
||
ssj-resources: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- ssj-ef-tests | ||
- paths-filter | ||
if: needs.paths-filter.outputs.crates == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/setup-uv@v2 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: uv.lock | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: .python-version | ||
|
||
- name: Install dependencies | ||
run: make setup | ||
|
||
- name: Load performance artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: resources | ||
name: resources | ||
|
||
- name: Check resources evolution | ||
run: | | ||
result=$(GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make check-resources 2>&1) | ||
echo "$result" >> "$GITHUB_STEP_SUMMARY" |
Oops, something went wrong.