Skip to content

Commit 4c3f7fc

Browse files
committed
chore: Add dedicated installer script
We need to get rid of cargo-dist asap since even windows build jobs are starting to fail (due to GH dropping certain runners). 'cargo-dist' is a great tool but is abandoned due to the bankruptcy. In the last couple of month we started getting issues related to lack of updates there, so prepare the drop.
1 parent 6fa2ff5 commit 4c3f7fc

File tree

3 files changed

+757
-3
lines changed

3 files changed

+757
-3
lines changed

.github/workflows/mdbook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
4848
- name: Build with mdBook
4949
run: mdbook build doc
50+
- name: Copy install script
51+
run: cp install.sh doc/html
5052
- name: Upload artifact
5153
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
5254
with:

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,26 @@ with a dedicated installer in every release and can be retrieved with the
139139
following command:
140140

141141
```console
142-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/gtema/openstack/releases/latest/download/openstack_cli-installer.sh | sh
142+
curl --proto '=https' --tlsv1.2 -LsSf https://gtema.github.io/openstack/install.sh | sh
143143
```
144144

145145
TUI can be installed similarly:
146146

147147
```console
148-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/gtema/openstack/releases/latest/download/openstack_tui-installer.sh | sh
148+
curl --proto '=https' --tlsv1.2 -LsSf https://gtema.github.io/openstack/install.sh | INSTALLER_TOOL=openstack_tui sh
149149
```
150150

151-
### Build locally
151+
### Build and install using `cargo`
152+
153+
When Rust toolchain is installed it is possible to use it to install the project.
154+
155+
```console
156+
cargo install openstack_cli
157+
cargo install openstack_tui
158+
```
159+
160+
### Build locally directly from sources
161+
152162
Alternatively it is possible to compile project from sources. Since the project
153163
is a pure `Rust` it requires having a Rust compile suite.
154164

0 commit comments

Comments
 (0)