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

feat: macros package #324

Merged
merged 2 commits into from
Aug 22, 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
53 changes: 53 additions & 0 deletions .github/workflows/macros.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Macros CI

on:
push:
paths:
- 'packages/macros/**'
- 'packages/macros_tests/**'
pull_request:
paths:
- 'packages/macros/**'
- 'packages/macros_tests/**'

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release

rustlint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros
env:
RUSTFLAGS: "-Dwarnings" # fail on warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all

scarbfmt:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros_tests
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
- name: Cairo format check
run: scarb fmt --check
4 changes: 4 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ dependencies = [
"alexandria_math",
]

[[package]]
name = "alexandria_macros"
version = "0.1.0"

[[package]]
name = "alexandria_math"
version = "0.2.0"
Expand Down
1 change: 1 addition & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"packages/data_structures",
"packages/encoding",
"packages/linalg",
"packages/macros",
"packages/math",
"packages/merkle_tree",
"packages/numeric",
Expand Down
Loading
Loading