mirror of https://github.com/vacp2p/zerokit.git
fix(CI): add condition for stateless feature (#267)
* fix(CI): add conditional to nightly build * fix(CI): add include into matrix build
This commit is contained in:
parent
0d5642492a
commit
fc823e7187
|
@ -13,6 +13,9 @@ jobs:
|
||||||
- x86_64-unknown-linux-gnu
|
- x86_64-unknown-linux-gnu
|
||||||
- aarch64-unknown-linux-gnu
|
- aarch64-unknown-linux-gnu
|
||||||
- i686-unknown-linux-gnu
|
- i686-unknown-linux-gnu
|
||||||
|
include:
|
||||||
|
- feature: stateless
|
||||||
|
cargo_args: --exclude rln-cli
|
||||||
name: Linux build
|
name: Linux build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -30,7 +33,7 @@ jobs:
|
||||||
run: make installdeps
|
run: make installdeps
|
||||||
- name: cross build
|
- name: cross build
|
||||||
run: |
|
run: |
|
||||||
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm
|
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm ${{ matrix.cargo_args }}
|
||||||
mkdir release
|
mkdir release
|
||||||
cp target/${{ matrix.target }}/release/librln* release/
|
cp target/${{ matrix.target }}/release/librln* release/
|
||||||
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
||||||
|
@ -51,6 +54,9 @@ jobs:
|
||||||
target:
|
target:
|
||||||
- x86_64-apple-darwin
|
- x86_64-apple-darwin
|
||||||
- aarch64-apple-darwin
|
- aarch64-apple-darwin
|
||||||
|
include:
|
||||||
|
- feature: stateless
|
||||||
|
cargo_args: --exclude rln-cli
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -66,7 +72,7 @@ jobs:
|
||||||
run: make installdeps
|
run: make installdeps
|
||||||
- name: cross build
|
- name: cross build
|
||||||
run: |
|
run: |
|
||||||
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm
|
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }} --workspace --exclude rln-wasm ${{ matrix.cargo_args }}
|
||||||
mkdir release
|
mkdir release
|
||||||
cp target/${{ matrix.target }}/release/librln* release/
|
cp target/${{ matrix.target }}/release/librln* release/
|
||||||
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
||||||
|
|
|
@ -4,7 +4,7 @@ version = "0.3.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rln = { path = "../rln" }
|
rln = { path = "../rln", default-features = true, features = ["arkzkey"] }
|
||||||
clap = { version = "4.2.7", features = ["cargo", "derive", "env"]}
|
clap = { version = "4.2.7", features = ["cargo", "derive", "env"]}
|
||||||
clap_derive = { version = "=4.2.0" }
|
clap_derive = { version = "=4.2.0" }
|
||||||
color-eyre = "=0.6.2"
|
color-eyre = "=0.6.2"
|
||||||
|
|
Loading…
Reference in New Issue