Skip to content

Commit

Permalink
feat: macros package
Browse files Browse the repository at this point in the history
  • Loading branch information
milancermak committed Aug 14, 2024
1 parent e1b0805 commit 4f9f54e
Show file tree
Hide file tree
Showing 12 changed files with 943 additions and 0 deletions.
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

0 comments on commit 4f9f54e

Please sign in to comment.