-
Notifications
You must be signed in to change notification settings - Fork 202
feat: bump to cairo 2.9.2 #2879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d5038b6
83bf801
1fb3e30
4a3ade9
4ce7374
b60db4c
60d43dd
3126333
e380dda
5e77d22
e71beff
914af81
fdd0956
1deee22
318571a
0f5b8c0
4c3c27b
c04cdc6
443f034
9f0d3c4
60f97aa
68680d6
2fb4521
ce9a8e9
7415519
703a066
58007e2
b4bf759
972c147
d3e8aba
0872858
b559ab2
545cc07
231b228
27d499a
9f0efd1
64d0877
4b2a7c0
c4ba5bf
767be0f
6fbdccf
ef8ec48
3500f1d
44c0358
f3cced0
3bccc10
81d1a02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,14 @@ on: | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_VERSION: 1.80.0 | ||
RUST_VERSION: 1.81.0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest-4-cores | ||
needs: [fmt, cairofmt] | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -32,7 +34,7 @@ jobs: | |
needs: ensure-docker | ||
runs-on: ubuntu-latest-32-cores | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -58,7 +60,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [fmt, cairofmt] | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -92,7 +94,7 @@ jobs: | |
needs: build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: debian:bookworm-slim | ||
image: ubuntu:noble | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Ohayo sensei! Confirmed: The Docker registry shows that 🔗 Analysis chainConsider using a stable Ubuntu release instead of noble. The Consider using 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check Ubuntu noble release status and available versions
# Check available Ubuntu versions in registry
curl -s https://registry.hub.docker.com/v2/repositories/library/ubuntu/tags?page_size=10 | \
jq -r '.results[].name' | \
grep -E '^(noble|jammy)'
Length of output: 168 Script: #!/bin/bash
# Get more Ubuntu tags and release information
echo "=== Available Ubuntu versions ==="
curl -s "https://registry.hub.docker.com/v2/repositories/library/ubuntu/tags?page_size=100" | \
jq -r '.results[].name' | \
grep -E '^(noble|jammy|lunar|mantic)' | sort
echo -e "\n=== Ubuntu Release Information ==="
curl -s https://ubuntu.com/release-cycle | grep -A 2 -B 2 "Noble"
Length of output: 1310 |
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
|
@@ -114,7 +116,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: software-mansion/setup-scarb@v1 | ||
with: | ||
scarb-version: "2.8.4" | ||
scarb-version: "2.9.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Ohayo sensei! Found a Cairo version mismatch that needs attention! The Scarb version 2.9.2 is indeed consistent across all CI jobs, but there's a related issue:
🔗 Analysis chainVerify Scarb version consistency across jobs. Ohayo sensei! The Scarb version is set to 2.9.2 across multiple jobs, which aligns with the Cairo version upgrade mentioned in the PR objectives. Let's verify the version consistency: Also applies to: 130-132, 147-149 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check Scarb version references across the codebase
# Search for Scarb version references
echo "=== Scarb version references ==="
rg -n "scarb-version|SCARB_VERSION" --type yaml --type toml
# Search for Cairo version references
echo -e "\n=== Cairo version references ==="
rg -n "cairo-version|CAIRO_VERSION" --type yaml --type toml
Length of output: 725 Script: #!/bin/bash
# Check Scarb version references in CI workflow
echo "=== Scarb version references in CI workflow ==="
rg -n "scarb-version:" .github/workflows/ci.yml
Length of output: 263 |
||
- run: | | ||
scarb --manifest-path examples/spawn-and-move/Scarb.toml fmt --check | ||
scarb --manifest-path examples/simple/Scarb.toml fmt --check | ||
|
@@ -124,9 +126,10 @@ jobs: | |
dojo-core-test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
steps: | ||
- uses: software-mansion/setup-scarb@v1 | ||
with: | ||
scarb-version: "2.9.2" | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dojo-bins | ||
|
@@ -140,9 +143,10 @@ jobs: | |
dojo-spawn-and-move-example-test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
steps: | ||
- uses: software-mansion/setup-scarb@v1 | ||
with: | ||
scarb-version: "2.9.2" | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dojo-bins | ||
|
@@ -157,7 +161,7 @@ jobs: | |
runs-on: ubuntu-latest-4-cores | ||
needs: [fmt, cairofmt] | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -166,7 +170,7 @@ jobs: | |
fmt: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -176,7 +180,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [fmt, cairofmt] | ||
container: | ||
image: ghcr.io/dojoengine/dojo-dev:v1.0.12 | ||
image: ghcr.io/dojoengine/dojo-dev:rust181bookworm2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scarb 2.8.4 | ||
scarb 2.9.2 | ||
starknet-foundry 0.30.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohayo sensei! The nightly toolchain date needs attention.
The nightly toolchain is set to a future date (2024-08-28) which doesn't exist yet. This will cause the build to fail.
📝 Committable suggestion
🧰 Tools
🪛 GitHub Actions: devcontainer
[warning] Invalid default value for ARG rust:${RUST_VERSION}-slim results in empty or invalid base image name