Skip to content

Commit

Permalink
chore: remove unneeded dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: jeluard <[email protected]>
  • Loading branch information
jeluard committed Feb 7, 2025
1 parent d5851dc commit faa4ce7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 37 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ jobs:
target: wasm32-unknown-unknown
packages: -p amaru-ledger
optional: true
# Disabled for now
#- runner: ubuntu-latest
# target: aarch64-unknown-linux-musl
# cross-compile: true
- runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-musl
- runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-musl
cross-compile: true
- runner: macos-latest
target: aarch64-unknown-linux-musl
timeout-minutes: 30
runs-on: ${{ matrix.environments.runner }}
steps:
Expand All @@ -62,10 +65,11 @@ jobs:
set +e
SCOPE="${{ matrix.environments.packages || '--workspace' }}"
if [[ "${{ matrix.environments.cross-compile }}" == "true" ]] ; then
cargo install cross --git https://github.com/cross-rs/cross
# cross doesn't load .cargo/config.toml, see https://github.com/cross-rs/cross/issues/562
$HOME/.cargo/bin/cross test --locked --all-features $SCOPE --target ${{ matrix.environments.target }}
sudo snap install zig --classic --beta
cargo install --locked cargo-zigbuild
cargo zigbuild --target ${{ matrix.environments.target }}
else
export CC=aarch64-linux-gnu-gcc
cargo test $SCOPE --locked --target ${{ matrix.environments.target }}
fi
exitcode="$?"
Expand Down
32 changes: 4 additions & 28 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pallas-primitives = "0.32.0"
pallas-traverse = "0.32.0"
rand = "0.8"
rayon = "1.10"
rocksdb = "0.22.0"
rocksdb = { version = "0.23.0", default-features = false, features = ["bindgen-runtime", "snappy"] }
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0.128", default-features = false }
tempfile = "3.15.0"
Expand Down
1 change: 0 additions & 1 deletion crates/amaru/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pallas-network.workspace = true
pallas-primitives.workspace = true
pallas-traverse.workspace = true
rand.workspace = true
rocksdb.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "signal"] }
tokio-util.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions crates/stores/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ tracing.workspace = true
pallas-codec.workspace = true
thiserror.workspace = true
hex.workspace = true

#[target.aarch64-unknown-linux-musl.dependencies]
#rocksdb = { workspace = true, features = ["bindgen-static", "snappy"] }

0 comments on commit faa4ce7

Please sign in to comment.