-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Bal7hazar/main
🎉 Kick start the project
- Loading branch information
Showing
28 changed files
with
2,156 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Setup' | ||
description: 'Setup tooling' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dojoup | ||
run: curl -L https://install.dojoengine.org | bash | ||
shell: bash | ||
|
||
- name: Install dojo | ||
run: | | ||
/home/runner/.config/.dojo/bin/dojoup --version ${{ env.DOJO_VERSION }} | ||
sudo mv /home/runner/.config/.dojo/bin/katana /usr/local/bin/ | ||
sudo mv /home/runner/.config/.dojo/bin/sozo /usr/local/bin/ | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
DOJO_VERSION: v0.3.3 | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
name: Check format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: software-mansion/setup-scarb@v1 | ||
- name: Format | ||
run: scarb fmt --package random --check | ||
shell: bash | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Build package | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Build | ||
run: sozo build | ||
shell: bash | ||
|
||
algebra: | ||
runs-on: ubuntu-latest | ||
name: Test algebra crate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Test | ||
run: sozo test -f algebra | ||
shell: bash | ||
|
||
defi: | ||
runs-on: ubuntu-latest | ||
name: Test defi crate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Test | ||
run: sozo test -f defi | ||
shell: bash | ||
|
||
random: | ||
runs-on: ubuntu-latest | ||
name: Test random crate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Test | ||
run: sozo test -f random | ||
shell: bash | ||
|
||
security: | ||
runs-on: ubuntu-latest | ||
name: Test security crate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Test | ||
run: sozo test -f security | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# origami | ||
# Origami |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "algebra" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"cubit", | ||
] | ||
|
||
[[package]] | ||
name = "cubit" | ||
version = "1.2.0" | ||
source = "git+https://github.com/influenceth/cubit?rev=b459053#b4590530d5aeae9aabd36740cc2a3d9e6adc5fde" | ||
|
||
[[package]] | ||
name = "defi" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"cubit", | ||
] | ||
|
||
[[package]] | ||
name = "dojo" | ||
version = "0.3.3" | ||
source = "git+https://github.com/dojoengine/dojo.git?tag=v0.3.3#3c9f109e667ca5d12739e6553fdb8261378f4ecf" | ||
dependencies = [ | ||
"dojo_plugin", | ||
] | ||
|
||
[[package]] | ||
name = "dojo_plugin" | ||
version = "0.3.3" | ||
|
||
[[package]] | ||
name = "random" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"dojo", | ||
] | ||
|
||
[[package]] | ||
name = "security" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"dojo", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[workspace] | ||
name = "origami" | ||
version = "0.0.0" | ||
description = "Community-maintained libraries for Cairo" | ||
homepage = "https://github.com/dojoengine/origami" | ||
members = [ | ||
"crates/algebra", | ||
"crates/defi", | ||
"crates/random", | ||
"crates/security", | ||
] | ||
|
||
[workspace.dependencies] | ||
dojo = { git = "https://github.com/dojoengine/dojo.git", tag = "v0.3.3" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "cubit" | ||
version = "1.2.0" | ||
source = "git+https://github.com/influenceth/cubit?rev=b459053#b4590530d5aeae9aabd36740cc2a3d9e6adc5fde" | ||
|
||
[[package]] | ||
name = "physics" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"cubit", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "algebra" | ||
version = "0.0.0" | ||
description = "Implementations of a algebra library." | ||
homepage = "https://github.com/dojoengine/origami/tree/crates/algebra" | ||
|
||
[dependencies] | ||
cubit = { git = "https://github.com/influenceth/cubit", rev = "b459053" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod vec2; | ||
mod vector; | ||
mod matrix; |
Oops, something went wrong.