Skip to content

Commit

Permalink
fix: adjustement for dev pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Aug 9, 2024
1 parent a513b29 commit 1dfd0bb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: dojo-bins
path: /tmp/bins
- run: |
bash scripts/build_spawn_and_move.sh /tmp/bins/sozo
bash scripts/build_cairo_projects.sh /tmp/bins/sozo
tar -xzf spawn-and-move-db.tar.gz -C /tmp/
tar -xzf types-test-db.tar.gz -C /tmp/
chmod +x /tmp/bins/katana
Expand Down
4 changes: 1 addition & 3 deletions crates/dojo-core/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ name = "dojo"
version = "1.0.0-alpha.4"

[dependencies]
# Rev points to support for Cairo 2.7.0-rc.3 without any tag yet. Should be
# updated once a release is cut with `2.7.0-rc.3` support in it.
dojo_plugin = { git = "https://github.com/dojoengine/dojo", rev = "71b1f1a4" }
dojo_plugin = { git = "https://github.com/dojoengine/dojo", rev = "f15def33" }
starknet = "=2.7.0"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions crates/torii/types-test/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies = [

[[package]]
name = "dojo_plugin"
version = "0.7.3"
source = "git+https://github.com/dojoengine/dojo?rev=71b1f1a4#71b1f1a467534cbeeb901356f41e612ed4187bd1"
version = "1.0.0-alpha.4"
source = "git+https://github.com/dojoengine/dojo?rev=f15def33#f15def330c0d099e79351d11c197f63e8cc1ff36"

[[package]]
name = "types_test"
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/types-test/src/contracts.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ mod records {
RecordLogged { record_id, type_u8: record_idx.into(), type_felt, random_u128 }
);
};
return ();
}

// Implemment fn delete, input param: record_id
fn delete(ref world: IWorldDispatcher, record_id: u32) {
let world = self.world_dispatcher.read();
Expand Down
4 changes: 2 additions & 2 deletions examples/spawn-and-move/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ dependencies = [

[[package]]
name = "dojo_plugin"
version = "0.7.3"
source = "git+https://github.com/dojoengine/dojo?rev=71b1f1a4#71b1f1a467534cbeeb901356f41e612ed4187bd1"
version = "1.0.0-alpha.4"
source = "git+https://github.com/dojoengine/dojo?rev=f15def33#f15def330c0d099e79351d11c197f63e8cc1ff36"
2 changes: 2 additions & 0 deletions scripts/build_spawn_and_move.sh → scripts/build_cairo_projects.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

# usage: bash scripts/build_cairo_projects.sh <sozo_path>
sozo_path=$1

# Re-run the minimal tests, this will re-build the projects + generate the build artifacts.
$sozo_path build --manifest-path examples/spawn-and-move/Scarb.toml
$sozo_path build --manifest-path examples/spawn-and-move/Scarb.toml -P release
$sozo_path build --manifest-path crates/torii/types-test/Scarb.toml
4 changes: 2 additions & 2 deletions xtask/generate-test-db/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async fn main() -> Result<()> {
let spawn_and_move_compressed_path = "spawn-and-move-db.tar.gz";
let types_test_compressed_path = "types-test-db.tar.gz";

let _ = fs::remove_dir_all(&spawn_and_move_compressed_path);
let _ = fs::remove_dir_all(&types_test_compressed_path);
let _ = fs::remove_dir_all(spawn_and_move_compressed_path);
let _ = fs::remove_dir_all(types_test_compressed_path);

// Ensures the db-dir is clean before we start to not include old data.
// `let _` is used to ignore the result of the remove_dir_all call as it may fail if the
Expand Down

0 comments on commit 1dfd0bb

Please sign in to comment.