Skip to content

Commit 219f701

Browse files
authored
Improve dependency checking on install script. (#2399)
1 parent 22a08a6 commit 219f701

File tree

4 files changed

+949
-15
lines changed

4 files changed

+949
-15
lines changed

.github/workflows/test-install.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Install
2+
3+
on:
4+
push:
5+
branches: [main, release/**]
6+
paths:
7+
- install.sh
8+
- test_install.rb
9+
pull_request:
10+
paths:
11+
- install.sh
12+
- test_install.rb
13+
14+
concurrency:
15+
group:
16+
${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha ||
17+
github.ref }}
18+
cancel-in-progress: true
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
test-install:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
- uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
30+
with:
31+
ruby-version: ruby
32+
- name: Run install tests
33+
run: ruby test_install.rb

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ For installation options, run the script with `--help`:
3737
curl -fsSL https://github.com/stellar/stellar-cli/raw/main/install.sh | sh -s -- --help
3838
```
3939

40+
Install with dependency setup (`--install-deps`) to attempt installing:
41+
42+
- Linux development dependencies (`libdbus`/`libudev` development packages; Linux only, not required on macOS)
43+
- Rust toolchain and `wasm32v1-none` target (for contract build workflows)
44+
45+
```sh
46+
curl -fsSL https://github.com/stellar/stellar-cli/raw/main/install.sh | sh -s -- --install-deps
47+
```
48+
4049
Install with Homebrew (macOS, Linux):
4150

4251
```sh

0 commit comments

Comments
 (0)