Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pop install #149

Merged
merged 35 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6f8ef5a
scaffold pop install
weezy20 May 1, 2024
7c2cc63
include scripts
weezy20 May 1, 2024
6ebc25b
implement script execution
weezy20 May 2, 2024
54a23a1
update script
weezy20 May 3, 2024
440791f
links
weezy20 May 3, 2024
ebe83d1
fix formatting
weezy20 May 3, 2024
6130f51
feat: installation process in rust code
AlexD10S May 8, 2024
98c4a1e
feat: flag --skip-confirmation
AlexD10S May 8, 2024
dc6fb7f
refactor: avoid repetition
AlexD10S May 8, 2024
d96e9eb
test: pop install CI
AlexD10S May 8, 2024
225441d
chore: merge branch 'main' into pop-install
AlexD10S May 8, 2024
3e86fab
Merge branch 'pop-install' into alexd10s/pop-install
AlexD10S May 8, 2024
5f44f3e
fix: merge main
AlexD10S May 8, 2024
ed9b7e8
Merge branch 'pop-install' into alexd10s/pop-install
AlexD10S May 8, 2024
6894e01
docs: remove Substrate word
AlexD10S May 8, 2024
8584f5a
Merge branch 'main' into pop-install
AlexD10S May 9, 2024
1c36f9c
Merge branch 'pop-install' into alexd10s/pop-install
AlexD10S May 9, 2024
d085404
fix: remove sudo from commands and merge install.yml
AlexD10S May 9, 2024
4df3c9e
chore: merge and refactor .yml
AlexD10S May 9, 2024
c1013b8
chore: add debian too
AlexD10S May 9, 2024
9fc66e3
chore: pop install CI only on main
AlexD10S May 9, 2024
099cca5
fix: in CI run install pop and run pop install separately
AlexD10S May 9, 2024
57fbb03
refactor: dependencies in enum
AlexD10S May 9, 2024
7d4dac5
refactor: dependencies in enum
AlexD10S May 9, 2024
251a7c9
refactor: sort enum
AlexD10S May 9, 2024
b40beda
chore: feedback
AlexD10S May 9, 2024
dad6e4a
chore: test in ci for arch and redhat and some fixes
AlexD10S May 9, 2024
47102f9
chore: change in ci
AlexD10S May 9, 2024
491e765
fix: ci arch distribution
AlexD10S May 10, 2024
d109322
chore: change ci to only triggers in main
AlexD10S May 10, 2024
08e38ae
chore: merge branch 'main' into alexd10s/pop-install
AlexD10S May 10, 2024
f16ad63
fix: command help message
AlexD10S May 10, 2024
26f9aa5
refactor: remove unnecesary prefix and merge commands
AlexD10S May 10, 2024
b1b7f6d
refactor: remove unnecesary code
AlexD10S May 10, 2024
a3b6259
chore: fix formatting
AlexD10S May 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 71 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,73 @@ defaults:
shell: bash

jobs:
arch:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: pacman -Syu --needed --noconfirm cmake curl git base-devel
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install Pop
run: |
. "$HOME/.cargo/env"
cargo install --locked --path ./crates/pop-cli
- name: Run Pop install
run: |
. "$HOME/.cargo/env"
pop install -y
debian:
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
container: debian
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: apt-get update && apt-get -y install build-essential cmake curl git
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install Pop
run: |
. "$HOME/.cargo/env"
cargo install --locked --path ./crates/pop-cli
- name: Run Pop Install
run: |
. "$HOME/.cargo/env"
pop install -y
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: brew update && brew install cmake openssl protobuf
- name: Install Rust
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install Pop
run: |
. "$HOME/.cargo/env"
cargo install --locked --path ./crates/pop-cli
- name: Run Pop Install
run: |
. "$HOME/.cargo/env"
pop install -y
redhat:
runs-on: ubuntu-latest
container: redhat/ubi8
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: yum update -y && yum install -y perl-IPC-Cmd clang curl git make cmake protobuf-compiler gcc pkg-config openssl-devel
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install Pop
run: |
. "$HOME/.cargo/env"
cargo install --locked --path ./crates/pop-cli
- name: Run Pop install
run: |
. "$HOME/.cargo/env"
pop install -y
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
ubuntu:
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
container: ubuntu
Expand All @@ -24,4 +91,7 @@ jobs:
run: |
. "$HOME/.cargo/env"
cargo install --locked --path ./crates/pop-cli
pop --version
- name: Run Pop install
run: |
. "$HOME/.cargo/env"
pop install -y
12 changes: 12 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ cliclack = "0.2"
console = "0.15"
strum = "0.26"
strum_macros = "0.26"
os_info = { version = "3", default-features = false }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can install Pop CLI as follows:
```shell
cargo install --locked --git https://github.com/r0gue-io/pop-cli
```

> For detailed instructions on how to install Pop CLI, please refer to our documentation: https://learn.onpop.io/pop/v/pop-cli/welcome/installing-pop-cli
> :information_source: A [crates.io](https://crates.io/crates/pop-cli) version will be available soon!

## Getting Started
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ duct.workspace = true
tempfile.workspace = true
url.workspace = true
tokio.workspace = true
reqwest.workspace = true
os_info.workspace = true

# pop-cli
clap.workspace = true
Expand Down
Loading