Skip to content
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

Version v0.2.4 #941

Merged
merged 10 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release on crates.io

permissions:
contents: write
Expand Down
67 changes: 56 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: GitHub Release

permissions:
contents: write
Expand All @@ -10,7 +10,7 @@ on:
- "v*.*.*"

jobs:
release:
release-linux:
runs-on: ubuntu-24.04
env:
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/
Expand Down Expand Up @@ -38,15 +38,60 @@ jobs:
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: build release
run: make build
- name: Release
- name: Compress into a tar file
run: cd target/release && tar -cJvf ../cairo-native-x86_64.tar.xz cairo-native-test \
scarb-native-test cairo-native-compile cairo-native-dump cairo-native-run scarb-native-test \
scarb-native-dump libcairo_native_runtime.a && cd ..
- uses: actions/upload-artifact@v4
with:
name: linux-build
path: cairo-native-x86_64.tar.xz

release-macos:
runs-on: macos-14
env:
CARGO_TERM_COLOR: always
LIBRARY_PATH: /opt/homebrew/lib
MLIR_SYS_190_PREFIX: /opt/homebrew/opt/llvm@19
LLVM_SYS_191_PREFIX: /opt/homebrew/opt/llvm@19
TABLEGEN_190_PREFIX: /opt/homebrew/opt/llvm@19
RUST_LOG: cairo_native=debug,cairo_native_test=debug
steps:
- uses: actions/checkout@v4
- name: Rustup toolchain install
uses: dtolnay/[email protected]
with:
components: clippy
- name: Rust `$PATH` workaround.
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Build release
run: make build
- name: Compress into a tar file
run: cd target/release && tar -cJvf ../cairo-native-aarch64.tar.xz cairo-native-test \
scarb-native-test cairo-native-compile cairo-native-dump cairo-native-run scarb-native-test \
scarb-native-dump libcairo_native_runtime.a && cd ..
- uses: actions/upload-artifact@v4
with:
name: macos-build
path: cairo-native-aarch64.tar.xz

release:
runs-on: ubuntu-24.04
needs: [release-macos, release-linux]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download linux
uses: actions/download-artifact@v4
with:
name: linux-build
- name: Download macos
uses: actions/download-artifact@v4
with:
name: macos-build
- name: Release on GitHub
uses: softprops/action-gh-release@v2
with:
files: |
target/release/cairo-native-test
target/release/scarb-native-test
target/release/cairo-native-compile
target/release/cairo-native-dump
target/release/cairo-native-run
target/release/scarb-native-test
target/release/scarb-native-dump
target/release/libcairo_native_runtime.a
cairo-native-aarch64.tar.xz
cairo-native-x86_64.tar.xz
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cairo-native"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
license = "Apache-2.0"
description = "A compiler to convert Cairo's intermediate representation Sierra code to MLIR."
Expand Down Expand Up @@ -91,7 +91,7 @@ cairo-lang-sierra-gas = "2.9.0-dev.0"
cairo-lang-starknet = "2.9.0-dev.0"
cairo-lang-utils = "2.9.0-dev.0"
cairo-lang-starknet-classes = "2.9.0-dev.0"
cairo-native-runtime = { version = "0.2.3", path = "runtime", optional = true }
cairo-native-runtime = { version = "0.2.4", path = "runtime", optional = true }
clap = { version = "4.5.19", features = ["derive"], optional = true }
libloading = "0.8.5"
tracing-subscriber = { version = "0.3.18", features = [
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cairo-native-runtime"
version = "0.2.3"
version = "0.2.4"
description = "The runtime for cairo-native."
edition = "2021"
license = "Apache-2.0"
Expand Down
Loading