Skip to content

Commit

Permalink
Cairo 2.9.2 (#948)
Browse files Browse the repository at this point in the history
* update to 2.9.0

* ci

* rust 1.83.0

* fix

* 2.9.1

* update

* update alexandria

* scarb

* version

* fix

* rc1

* fix

* Update Makefile

Co-authored-by: MrAzteca <[email protected]>

* update replay

* fix alexandria

* looks like runtime is needed always due to build.rs

* fix patch

* typo

---------

Co-authored-by: MrAzteca <[email protected]>
  • Loading branch information
edg-l and azteca1998 authored Dec 18, 2024
1 parent c85361b commit e47a42e
Show file tree
Hide file tree
Showing 25 changed files with 626 additions and 416 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench-hyperfine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/lib/android
df -h
- uses: dtolnay/rust-toolchain@1.82.0
- uses: dtolnay/rust-toolchain@1.83.0
with:
components: clippy
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
df -h
- name: Install Rust
if: ${{ steps.cache-binary.outputs.cache-hit != 'true' || steps.cache-library.outputs.cache-hit != 'true' }}
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: add llvm deb repository
if: ${{ steps.cache-binary.outputs.cache-hit != 'true' || steps.cache-library.outputs.cache-hit != 'true' }}
uses: myci-actions/add-deb-repo@11
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.82.0
- uses: dtolnay/rust-toolchain@1.83.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.82.0
- uses: dtolnay/rust-toolchain@1.83.0
with:
components: rustfmt
- run: cargo fmt --all -- --check
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
sudo rm -rf /usr/local/lib/android
df -h
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
with:
components: clippy
- name: Rust `$PATH` workaround.
Expand All @@ -175,7 +175,7 @@ jobs:
- name: Install scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.4"
scarb-version: "2.9.2"
- name: Install deps
run: make deps
- name: Run tests
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
sudo rm -rf /usr/local/lib/android
df -h
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
Expand All @@ -243,7 +243,7 @@ jobs:
- name: Install scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.4"
scarb-version: "2.9.2"
- name: Install deps
run: make deps
- name: Build runtime and alexandria
Expand Down Expand Up @@ -278,7 +278,7 @@ jobs:
needs: [coverage]
steps:
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.80.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependencies
uses: Swatinem/rust-cache@v2
- name: Install testing tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
# Install dependencies
- uses: ./cairo_native/.github/actions/install-linux-deps
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: Build Cairo Native Runtime Library
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/lib/android
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/lib/android
- name: Setup rust env
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
Expand All @@ -36,6 +36,8 @@ jobs:
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- name: Install LLVM
run: sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools
- name: Install deps
run: make deps
- name: build release
run: make build
- name: Compress into a tar file
Expand All @@ -58,11 +60,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@1.82.0
uses: dtolnay/rust-toolchain@1.83.0
with:
components: clippy
- name: Rust `$PATH` workaround.
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install deps
run: make deps
- name: Build release
run: make build
- name: Compress into a tar file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.82.0
- uses: dtolnay/rust-toolchain@1.83.0
- uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
uses: myci-actions/add-deb-repo@11
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/starknet-blocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
block: [742001, 769597, 779328, 801008, 803072]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.82.0
- uses: dtolnay/rust-toolchain@1.83.0
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
key: "ref-02b46e8b108f85ac50c22a8c41c9d8b0a93294e8"
key: "ref-955512a96ab317c61d0b12ae230f33176b6005e4"

- name: Check and free hdd space left
if: ${{ matrix.runner == 'native' }}
Expand Down Expand Up @@ -66,7 +66,6 @@ jobs:
if: ${{ matrix.runner == 'native' }}
run: cargo b --release
- name: Build runtime
if: ${{ matrix.runner == 'native' }}
run: |
make runtime
cargo update
Expand All @@ -76,7 +75,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: lambdaclass/starknet-replay
ref: 02b46e8b108f85ac50c22a8c41c9d8b0a93294e8
ref: 955512a96ab317c61d0b12ae230f33176b6005e4
path: replay

- name: Install Starknet Replay deps
Expand All @@ -86,7 +85,7 @@ jobs:
if: ${{ matrix.runner == 'native' }}
run: |
cd replay
sed -r -i 's/cairo-native.*/cairo-native = { path = ".." }/' Cargo.toml
echo -e '[patch.crates-io]\ncairo-native = { path = ".." }' >> Cargo.toml
- name: Run Blocks Native
if: ${{ matrix.runner == 'native' }}
Expand Down
Loading

0 comments on commit e47a42e

Please sign in to comment.