-
Notifications
You must be signed in to change notification settings - Fork 160
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 use-standard-felt
- Loading branch information
Showing
34 changed files
with
953 additions
and
41 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,25 @@ | ||
name: Cairo 1 programs execution | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
run: | ||
name: Execute programs | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Install Rust toolchain | ||
uses: dtolnay/[email protected] | ||
- name: Set up Cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: install corelib | ||
run: cd cairo1-run/ && make deps | ||
- name: Run tests | ||
run: cd cairo1-run/ && make test | ||
- name: Run cairo 1 programs | ||
run: cd cairo1-run/ && make run |
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 |
---|---|---|
|
@@ -209,7 +209,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
special_features: [""] | ||
target: [ test#1, test#2, test-no_std, test-wasm ] | ||
target: [ test#1, test#2, test#3, test#4, test-no_std, test-wasm ] | ||
name: Run tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
@@ -234,6 +234,11 @@ jobs: | |
with: | ||
tool: [email protected],cargo-llvm-cov,wasm-pack | ||
|
||
- name: Install cairo 1 dependencies for running programs | ||
run: | | ||
cd cairo1-run | ||
make deps | ||
- name: Run ${{ matrix.target }} | ||
run: | | ||
# this splits the `test#1` into `test` and `1` | ||
|
@@ -244,7 +249,7 @@ jobs: | |
case ${NAME} in | ||
'test') | ||
cargo llvm-cov nextest --lcov --output-path lcov-${{ matrix.target }}-${{ matrix.special_features }}.info \ | ||
--partition count:${PARTITION}/2 \ | ||
--partition count:${PARTITION}/4 \ | ||
--workspace --features "cairo-1-hints, test_utils, ${{ matrix.special_features }}" | ||
;; | ||
'test-no_std') | ||
|
@@ -411,6 +416,18 @@ jobs: | |
path: lcov-test#2-.info | ||
key: codecov-cache-test#2--${{ github.sha }} | ||
fail-on-cache-miss: true | ||
- name: Fetch results for tests with stdlib (part. 3) | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: lcov-test#3-.info | ||
key: codecov-cache-test#3--${{ github.sha }} | ||
fail-on-cache-miss: true | ||
- name: Fetch results for tests with stdlib (part. 4) | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: lcov-test#4-.info | ||
key: codecov-cache-test#4--${{ github.sha }} | ||
fail-on-cache-miss: true | ||
- name: Fetch results for tests without stdlib | ||
uses: actions/cache/restore@v3 | ||
with: | ||
|
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.