generated from keep-starknet-strange/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: use native in ci * remove outdated gas reports * fix fmt * fix runtime location * avoid clearing the ssj checkout * use correct working dir * update stack size when running rust ef-tests * update workflows * simplify workflows by avoiding re-building runtimes * rework workflow structure
- Loading branch information
Showing
7 changed files
with
86 additions
and
192 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,32 @@ | ||
name: Reusable Build Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact-name: | ||
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
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 | ||
|
||
- name: Build contracts | ||
run: scarb build -p contracts | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
path: 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Reusable Unit Tests Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
run-fmt-check: | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest-16-cores # trunk-ignore(actionlint/runner-label) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: foundry-rs/setup-snfoundry@v3 | ||
- uses: software-mansion/setup-scarb@v1 | ||
|
||
- name: Run format check | ||
if: inputs.run-fmt-check | ||
run: scarb fmt --check | ||
|
||
- name: Run tests | ||
run: scarb test |
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 |
---|---|---|
|
@@ -5,3 +5,5 @@ target | |
node_modules/ | ||
*.snfoundry_cache | ||
cache/ | ||
|
||
scripts/libcairo_native_runtime.a |