Skip to content

Commit

Permalink
build(deps): use git2 vendored-openssl feature (#153)
Browse files Browse the repository at this point in the history
* build(deps): use git2 vendored-openssl feature

* ci: add install workflow

* ci: remove push trigger

* ci: fix command due to exit code
  • Loading branch information
evilrobot-01 authored May 9, 2024
1 parent e9dc240 commit ccfc123
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pop install

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

defaults:
run:
shell: bash

jobs:
ubuntu:
runs-on: ubuntu-latest
container: ubuntu
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
pop --version
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: rustup target add ${{ matrix.platform.target }}

- name: Build pop-cli
run: cargo build --profile=production -p pop-cli --target ${{ matrix.platform.target }} --features static-ssl
run: cargo build --profile=production -p pop-cli --target ${{ matrix.platform.target }}

- name: Package binary (Linux)
if: contains(matrix.platform.target, 'linux')
Expand Down
3 changes: 1 addition & 2 deletions crates/pop-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ sp-weights = { workspace = true, optional = true }
# parachains
pop-parachains = { path = "../pop-parachains", optional = true }
dirs = { version = "5.0", optional = true }
git2.workspace = true
git2 = { workspace = true, features = ["vendored-openssl"] }

[dev-dependencies]
assert_cmd = "2.0.14"
predicates = "3.1.0"

[features]
default = ["contract", "parachain"]
static-ssl = ["git2/vendored-openssl"]
contract = [
"dep:pop-contracts",
"dep:sp-core",
Expand Down

0 comments on commit ccfc123

Please sign in to comment.