Skip to content

Commit

Permalink
feat: add stellar_ledger as workspace dep
Browse files Browse the repository at this point in the history
Also update test files to add needed deps
  • Loading branch information
willemneal committed Jun 24, 2024
1 parent 257c236 commit da5f456
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- run: rustup target add ${{ matrix.sys.target }}
- if: matrix.sys.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get update && sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- if: matrix.sys.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt install -y libudev-dev
- name: Setup vars
run: |
version="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "stellar-cli") | .version')"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
path: system-test/js-stellar-sdk

- uses: stellar/actions/rust-cache@main
- name: install libudev-dev
run: |
sudo apt install -y libudev-dev
- name: Build system test with component versions
run: |
cd $GITHUB_WORKSPACE/system-test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/full-help-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- uses: actions/checkout@v3
- uses: stellar/actions/rust-cache@main
- run: rustup update
- name: install libudev-dev
run: |
sudo apt install -y libudev-dev
- name: Generate help doc
# this looks goofy to get GITHUB_OUTPUT to work with multi-line return values;
# see https://stackoverflow.com/a/74266196/249801
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rpc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup update
- name: install libudev-dev
run: |
sudo apt install -y libudev-dev
- run: cargo build
- run: rustup target add wasm32-unknown-unknown
- run: make build-test-wasms
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ version = "=21.1.0-rc.1"
version = "=21.0.0"
path = "cmd/soroban-cli"

[workspace.dependencies.stellar-ledger]
version = "=21.0.0"
path = "cmd/crates/stellar-ledger"

[workspace.dependencies.soroban-rpc]
package = "stellar-rpc-client"
version = "21.3.1"
Expand Down
2 changes: 2 additions & 0 deletions cmd/soroban-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ soroban-ledger-snapshot = { workspace = true }
stellar-strkey = { workspace = true }
soroban-sdk = { workspace = true }
soroban-rpc = { workspace = true }
stellar-ledger = { workspace = true }

clap = { workspace = true, features = [
"derive",
"env",
Expand Down

0 comments on commit da5f456

Please sign in to comment.